Repository navigation
Pixi migration: Migrate CI dependencies to pixi/conda-forge - #8823
Ayushj0704 wants to merge 43 commits into
Conversation
|
Thanks , makes sense. I'll replace the find_package(BLAS)/find_package(LAPACK) calls in FindCOIN.cmake with direct find_library() lookups for cblas and lapacke, and drop the BLAS_LIBRARIES/LAPACK_LIBRARIES workflow workaround once that's working. Using the feedstock issue as reference. |
|
@jpfeuffer I've reverted FindCOIN.cmake to the baseline you asked for. While testing pixi builds I hit a real blocker in the original logic: On Windows + pixi, linking against CoinOR fails with unresolved BLAS symbols (DGETRF/DGETRS from CoinUtils). Minimal fix I'm proposing change it to: This keeps existing vcpkg behavior and additionally covers the pixi/Windows case where BLAS is present via BLIS/FLAME but VCPKG_TOOLCHAIN is not set. Are you OK with this minimal extension (VCPKG_TOOLCHAIN OR WIN32), or would you prefer a different way to hook pixi/Windows into the BLAS/LAPACK detection? |
|
If you cannot find a way to detect if it is a coinor library from Conda or a static library in general, then you must add a configuration option to cmake. But you can't just try to find blas everytime you are on Windows. This would obviously break or needlessly complicate other workflows where blas is correctly linked. |
| # Currently coin-or from vcpkg requires BLAS and LAPACK. For conda-forge/ | ||
| # pixi builds, BLAS/LAPACK are also needed but VCPKG_TOOLCHAIN is not set, | ||
| # so this option allows explicitly opting in from the build configuration. | ||
| # TODO: Find a better way to do this. Ideal would be if Coin exports a |
There was a problem hiding this comment.
Regarding TODO: I definitely agree but COIN does not use CMake yet so they won't be able to easily export a CMake config.
One could add this on top like VCPKG or others, but ideally this should be solved by COIN.
The problem is that they are working on a CMake build system since 5 years or so and they have only very few maintainers.
|
Why are you looking for FLAME by the way? CoinOR only comes with CBLAS and LAPACKE as dependency. |
|
Thanks for pointing that out. Forcing BLA_VENDOR=FLAME didn’t really make sense here, so I’ve dropped that override entirely, cmake now just picks up the netlib BLAS/LAPACK that conda-forge ships. |
|
Maybe let's take a step back here. First of all, let's get rid of all occurrences of coinmp whichvis a completely different older package. Then check what the conda solver installs. Which packages, which blas implementation, which coinor. Then check how coinor is installed/built. I think on win it's a static .lib while on macOS/lnx it's a dylib/so. If dynamic, check which dependencies it has and if they are also in the conda prefix. Then post what the find_package cmake call say when you try to find thedependencies with OpenMS. Lastly post what the linker says when linking at the end of the cmake build of openms. Installation and rpaths are the very very last problem. |
|
Thanks for the guidance. Removing coinmp now and will work through the diagnostic sequence solver output, library type check, find_package results, and linker output before making any further changes. Will report back with findings. |
|
Hi @jpfeuffer,
Uppercase, no underscore , MSVC calling convention. Not in libCbc.lib at all.
Question: |
|
Nice work. Off the top of my head I would say any blas implementation should provide these symbols. You can usually check this with |
|
as per your suggestions , here is what i have analysed,
2 unresolved externals |
|
Yes you obviously need to link to any BLAS implementation. Likely MKL. By the way, I have no idea where BLIS would come from, since for me only MKL shows up as a dependency on windows: https://conda-metadata-app.streamlit.app/?q=conda-forge%2Fwin-64%2Fcoin-or-cbc-2.10.12-h3f959f2_5.conda I also don't know why you were (or are) trying with different BLAS Vendors, the CMake documentation clearly states that if you do not give a vendor, it will search for ALL vendors: https://cmake.org/cmake/help/latest/module/FindBLAS.html#input-variables You did not show the output of find_package BLAS. I dont know why you removed the OPENMS_PIXI_BUILD variable that we agreed upon that is important. |
|
I searched the full git history and the PR thread but cannot find where |
|
OPENMS_LINK_COIN_BLAS Some human cognitive extrapolation would be beneficial. |
|
Please revert the last commit immediately! This is plain wrong! No one said that for other ways of building/installing the all-in-one coinmp package is wrong |
…lean pixi deps" This reverts commit b08fb14.
|
Reverted. Understood , coinmp removal should be scoped only to pixi-related files, not documentation and scripts that cover other build paths. Will reapply only the FindCOIN.cmake and pixi.toml changes without touching coinmp references elsewhere. |
|
Thank you for your efforts but for the sake of reviewers I am closing this until you have a working, non-conflicting solution. |
|
By the way, we already decided that messing with LD_LIBRARY paths will not be tolerated as a solution. |
Description
migrating the OpenMS dependencies to pixi/conda-forge for cross platform builds, currently setup relies on different package managers (choco, brew,vcpkg,conda) depending on type of OS , which make it complex in setting up the codespace and to overcome the same ,platform specific need into a single pixi.toml that works consistently across linux-64,linux-aarch64,osx-arm64 and win-64.
posting a draft to get early feedback.
Current Progress
-passing on Ubuntu gcc13.
-passing on Ubuntu clang 17.
-passing on Ubuntu arm64.
-In Windows : facing LAPACK/BLAS linking (path issue) errors.
-In macOS : facing cmake configure fix in macOS.
Key Findings
-cmake 4.x segfaults on osx-arm64 ci runners , pinned to <4.0.
-FindCOIN.cmake uses find_package(BLAS) which needs explicit lib path on windows since conda-forge ships BLAS as blis.lib.