-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect the Apple Accelerate/vecLib runtime #135
Comments
For information:
so we would need to both inspect the |
I'll note that NumPy now defaults to building against the new Accelerate BLAS and LAPACK (not like conda-forge, that's old Accelerate + Netlib BLAS). It would indeed be quite useful. How it's reported by numpy right now: >>> np.show_config(mode='dicts')['Build Dependencies']['blas']
{'name': 'accelerate', 'found': True, 'version': 'unknown', 'detection method': 'system', 'include directory': 'unknown', 'lib directory': 'unknown', 'openblas configuration': 'unknown', 'pc file directory': 'unknown'} |
@rgommers is this supposed to be the case for a released version of numpy or for the future numpy 2? I just tried to install numpy from pypi.org in an empty tmp conda env and I got openblas:
EDIT: running on macOS / M1 |
It's a very recent regression, which got introduced in some CI refactor (the Accelerate wheel build jobs didn't have OpenBLAS installed until last week or so). That will definitely be fixed before 2.0 comes out. |
numpy 2.0.0rc1 is out and ships wheels for macos-14 that no longer vendor openblas but instead link against the system Accelerate: So I guess the priority of this issue goes up because there will be many more people using Accelerate by default very soon. |
Relying on
|
It is now possible to install numpy, scipy... with a BLAS implementation that links to the macOS Accelerate library via conda-forge:
But at the moment, threadpoolctl does not recognize this BLAS implementation. I tested the following on a macOS/M1 machines:
Output of
mamba list
:Even if we cannot detect the number of threads it would be helpful to detect that numpy and/or scipy rely on Accelerate.
For CI purposes, we could probably leverage Cirrus CI to gain access to macOS/arm64 machines. Alternatively we could try with the standard macOS/x86_64 CI on Azure.
EDIT: GitHub Actions now also has macOS M1 runners by default.
The text was updated successfully, but these errors were encountered: