-
Notifications
You must be signed in to change notification settings - Fork 4
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
[JOSS review] benchmark on Apple silicon #16
Comments
Thank you for the suggestion. The short answerWe do not support MPS GPU's yet, and MPS CPU is slower than doing the calculation without MPS backend. The longer answer:To install torch with MPS backend, I have followed the guide here: https://developer.apple.com/metal/pytorch/ We can allow I have set the environment variable
We can conclude that for now, we cannot offer any acceleration on the MPS device. We hope that the If you have any ideas on how we can offer MPS acceleration, please let us know :-) |
With #42, we now offer MPS calculations, meaning that 'mps' is allowed as a input for device. However, the software is not optimised for MPS and therefore does not give speed-ups. For a Mac M3 chip, it is about 10 % slower on MPS than CPU. However, it means that for calculations of scattering patterns from many structures, parallel calculations using both CPU and MPS can be done, giving a speed-up of about 15 %. Note: MPS does not work with Python3.7. It works with Python >=3.8. |
This is part of the review feedback for JOSS submission (openjournals/joss-reviews#6024)
It would be interesting to see how the software performs on Apple silicon when running as a CPU process and using the
mps
backend.The text was updated successfully, but these errors were encountered: