Skip to content

CI (macos): Add configuration using Apple Accelerate as BLAS/LAPACK - #841

Merged
raback merged 3 commits into
ElmerCSC:develfrom
mmuetzel:ci-macos
Aug 12, 2026
Merged

CI (macos): Add configuration using Apple Accelerate as BLAS/LAPACK#841
raback merged 3 commits into
ElmerCSC:develfrom
mmuetzel:ci-macos

Conversation

@mmuetzel

Copy link
Copy Markdown
Contributor

Add a configuration to the build matrix for the workflow running on macOS that uses Apple Accelerate as the implementation of the BLAS and LAPACK libraries (using the vecLibFort library as a shim for ABI compatibility with gfortran).

The implementation from Apple might perform better on macOS for some workloads compared to OpenBLAS.

This came up while reviewing the Homebrew recipe for ElmerFEM:
ElmerCSC/homebrew-elmerfem#17

Add a configuration to the build matrix for the workflow running on macOS that
uses Apple Accelerate as the implementation of the BLAS and LAPACK libraries
(using the vecLibFort library as a shim for ABI compatibility with gfortran).

The implementation from Apple might perform better on macOS for some workloads
compared to OpenBLAS.

This came up while reviewing the Homebrew recipe for ElmerFEM:
ElmerCSC/homebrew-elmerfem#17
All configurations in the job matrix for the CI on macOS are building with
enabled OpenMP.

Simplify the workflow by removing that job matrix dimension.
The environment variable `OMP_NUM_THREADS` was set to 1 while running the test
suite in the CI workflow for macOS. That disables testing with multiple
concurrent OpenMP threads on that platform.

Remove setting that environment variable so that the default number of OpenMP
threads as determined by the test suite is used.
@mmuetzel

mmuetzel commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Rebased on a current head (resolving some conflicts).

I also added a couple new commits regarding OpenMP as a follow up for the recent changes regarding OpenMP in the workflow on macOS. (I can't test on macOS locally. So, let's see how the CI runners react. In particular to the removal of OMP_NUM_THREADS=1.)

@mmuetzel

Copy link
Copy Markdown
Contributor Author

All green even after those changes.

The major overhaul of OpenMP threading by @juharu over the past weeks and months apparently worked wonders not only on Windows but also on macOS. 🎉

@raback

raback commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

It is so nice to see just green on the actions! Nice job Markus and Juha!

@raback
raback merged commit 5f1ca16 into ElmerCSC:devel Aug 12, 2026
15 checks passed
@juharu

juharu commented Aug 15, 2026 via email

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants