Skip to content

Conversation

@RastislavTuranyi
Copy link
Collaborator

Fixes the MacOS CMake build by:

  1. Linking Criterion as IMPORTED_TARGET to propagate PkgConfig paths
  2. Linking against any BLAS (BLAS::BLAS instead of specifying openblas)
  3. Linking against LAPACK explicitly

Additionally, adds a MacOS CI pipeline that runs the tests.

However, one thing to note is that this currently doesn't work with Apple's own BLAS library (Accelerate), probably because it doesn't export Fortran-style symbols for some LAPACK routines (dgemqrt_, dgeqrt_) - fixing this will likely require more substantial efforts. For now, OpenBLAS seems to work just fine. @haldaas, can you please check that this branch works on your mac?

Rastislav Turanyi added 9 commits December 9, 2025 10:15
MacOS build was not working likely because there Criterion was not on the default path and CMake was not propagating the path it found
CMake has been specifying openblas - this has been changed to BLAS::BLAS which should work with any BLAS
Linking against BLAS has worked on Linux, but MacOS BLAS seems to be structured differently, requiring explicit linking against LAPACK
The Apple Accelerate library is likely to need more work, so for now we'll only test with OpenBLAS
@RastislavTuranyi RastislavTuranyi added CI/CD Something to do with the CI/CD pipeline Build Something to do with the build system labels Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Something to do with the build system CI/CD Something to do with the CI/CD pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants