CI (macos): Add configuration using Apple Accelerate as BLAS/LAPACK - #841
Merged
Conversation
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.
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 |
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. 🎉 |
Contributor
|
It is so nice to see just green on the actions! Nice job Markus and Juha! |
Contributor
|
There are some intermittent failures now on macos/homebrew, although likely not the reason for these, perhaps could be benficial
anyway not to overburden the machines:
*
Run with "ctest -j1", instead of number of cpus
*
Restrict #MPI task * #threads to max #cpus or even #cores
Br, Juha
…________________________________
Lähettäjä: Markus Mützel ***@***.***>
Lähetetty: keskiviikko 12. elokuuta 2026 9.33
Vastaanottaja: ElmerCSC/elmerfem ***@***.***>
Kopio: juharu ***@***.***>; Mention ***@***.***>
Aihe: Re: [ElmerCSC/elmerfem] CI (macos): Add configuration using Apple Accelerate as BLAS/LAPACK (PR #841)
[https://avatars.githubusercontent.com/u/65065102?s=20&v=4]mmuetzel left a comment (ElmerCSC/elmerfem#841)<#841 (comment)>
All green even after those changes.
The major overhaul of OpenMP threading by @juharu<https://github.com/juharu> over the past weeks and months apparently worked wonders not only on Windows but also on macOS. 🎉
—
Reply to this email directly, view it on GitHub<#841?email_source=notifications&email_token=ACTOMSSXPHLRNSDHM53FHGD5JQFS5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRWGMYTSOBWGAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5263198600>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACTOMSWV5GYR4KR5FMY3EWD5JQFS5AVCNFSNUABEKJSXA33TNF2G64TZHMYTMNZXGEYDQNZ3JFZXG5LFHM2DQOBTGY4TEMJQGSQXMAQ>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/ACTOMSWFVYW7EK27TXVKSOD5JQFS5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRWGMYTSOBWGAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android<https://github.com/notifications/mobile/android/ACTOMSRNR4EAOEFBQD7BMK35JQFS5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRWGMYTSOBWGAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
The information in this email may be confidential and is intended solely for the use of the individual or entity to whom it is intended. If you are not the intended recipient of this message, please delete the message and notify the sender immediately. For information on how we process personal data and our contact information, please see CSC's website: Privacy<https://csc.fi/en/privacy>
Tämän sähköpostin tiedot voivat olla luottamuksellisia ja ne on tarkoitettu yksinomaan sen henkilön tai yhteisön käyttöön, jolle ne on osoitettu. Jos et ole viestissä tarkoitettu vastaanottaja, tuhoa viesti ja ilmoita asiasta välittömästi viestin lähettäjälle. Tietoja henkilötietojen ja yhteystietojen käsittelystä löydät CSC:n verkkosivuilta: Tietosuoja<https://csc.fi/tietosuoja>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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