-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppleSilicon binaries are build without OpenMP support #114721
Comments
Hi, wondering about what steps you propose to take and how can I contribute to this issue? |
Baby step towards #114721 Pull Request resolved: #114738 Approved by: https://github.com/DanilBaibak, https://github.com/atalman
@garyyaoresearch sorry, edited the title, I've used M1 as alias for Apple Silicon, but yes, they are not the same. |
Fun fact: it is enabled in nightlies (I assume as result of #110432 ):
|
Hey no problem. Happy to help :). In running test_sparse.py, nn/test_convolution.py, it seems like all cores are used, but not to full capacity (observed max 350% cpu for 8 cores). In addition, https://discuss.pytorch.org/t/pytorch-unable-to-fully-utilize-cpu-when-performing-svd/192524, indicates such as well. I think the next steps might be to compare performance against nightly with OpenMP enabled. Do you that will be helpful? |
I tried this, but a regular conda install of the nightly doesn't have openmp available. Will try building nightly from binary and also look into the build process. |
So it's not enabled on MacOS nightly for 3.11:
but it's on Linux aarch64:
|
Surprisingly, 3.9 wheel works fine
|
Confirm that this has been fixed on the latest 2.2.1 RC on all python versions |
馃悰 Describe the bug
% python -c "import os;import torch;print(os.uname().sysname, os.uname().machine, torch.__version__, torch.backends.openmp.is_available())" Darwin arm64 2.1.1 False
Versions
2.1.x, nightly
cc @ezyang @gchanan @zou3519 @kadeng
The text was updated successfully, but these errors were encountered: