-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Investigate scipy
/Apple Accelerate (for Sparse Solvers)
#69
Comments
scipy
/Apple Accelerate Option (for sparse matrices)scipy
/Apple Accelerate (for Sparse Solvers)
This affects the following sections in the documentation:
Setup > macOS (Apple Silicon/ARM)
|
The documentation for Accelerate sparse matrices is here. I also added a warning to let people know if they don't have a fast LA library. Given that using |
Numpy So I think this may not be the case:
And this might potentially be interesting for: I'll try to check if I can compare performance on Apple Silicon and post the results here. Aside from performance, we could further simplify/unify the installation instructions. |
Sure, I saw this too. We are currently pinning stuff to numpy<2 because we don't have enough testing to see if it works, but this looks promising. |
Having done some testing, I quickly realized that the actual magic happens in the Unfortunately, the SciPy documentation (1.13.X) mentions that:
An archived SciPy GitHub-wiki entry details the reasoning for this missing support. There are some efforts: However, it looks like this might still take a while 😢... |
Ok, before @romainsacchi posts his findings here: For some reason I did not find this previously: SciPy from Installing SciPy such that is is actually built against Accelerate is not yet straightforward. Conda failed to do so when I tried... I had better luck with just pip (yeah, yeah, @cmutel 😜). I found performance did improve for some operations - a quick testing notebook is on this branch: |
Is it though? |
scipy
in December 2018 dropped and in May 2021 re-introduced support for the Apple Accelerate library (compare also the SciPy roadmap and their GitHub repo wiki page).This library
It could therefore provide a highly optimized alternative to the current
bw25nosolver
workaround (compare the documentation).Investigation
scipy
installation has Accelerate supportscipy
with Accelerate supportImplementation
bw2calc
Compare @cmutel's existing notebook "Compare speed of iterative solvers".
Documentation
Installation
Sparse Solvers
Discussion on Hackernews
The text was updated successfully, but these errors were encountered: