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
DOC: How to install Numpy on Apple silicon #24961
Comments
You should be able to build numpy locally if you drop the We recently switched from numpy.distutils to meson as numpy's build backend so the |
I'm not sure why the conda packages and wheels are so much slower than local builds, though |
|
Closing since the installation issue is solved. Feel free to open another issue about the performance difference. |
performance will be due to a build from source on macOS 14 picking up Accelerate instead of using OpenBLAS. For the next release we'll have wheels that use Accelerate. |
As per the title of this issue, is the documentation updated? If so, where? |
Snooping in my Mac and I found this:
So I it seems that the wheel I'm using is not compiled with Accelerate, shame. |
Then I did: pip install -U --no-binary :all: numpy and now I can see:
But I didn't notice any difference in my particular application. |
There will be wheels built against Accelerate for NumPy 2.0; it's a work in progress right now. |
Thanks for the update. |
Issue with current documentation:
I have a Macbook PRO M1 and used to follow this procedure to install Numpy optimized with Apple Silicon hardware :
https://gist.github.com/MarkDana/a9481b8134cf38a556cf23e1e815dafb
But
Source :
As MacOS 14 is now live, I ran the common benchmark scripts and here are the results
pip install --no-binary :all: --no-use-pep517 numpy
)So, what is the proper way to install Numpy on Apple Silicon ? And what will be in the future ? How to get as good results as previous trick (
pip install --no-binary :all: --no-use-pep517 numpy
)It is really difficult to find updated information on this matter.
For the records :
mysvd.py :
Idea or request for content:
No response
The text was updated successfully, but these errors were encountered: