-
Notifications
You must be signed in to change notification settings - Fork 747
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
Openblas support on Macosx M1 #1171
Comments
There isn't a Fortran compiler available for that platform, yet, so we can't compile LAPACK, that's normal.
|
I'm not sure but, Maybe you can build openblas contains lapack/fortran using below repository. https://github.com/iains/gcc-darwin-arm64 |
But LAPACK does compile from homebrew, this one did compile fine on my laptop: https://formulae.brew.sh/formula/openblas . |
It's possible gfortran is now available, yes. Please give it a try by updating the build script and see what that gives. |
Oh, pull OpenMathLib/OpenBLAS#3539 is something interesting that got merged recently. I'll give that a try when 0.3.21 gets released, but contributions are always welcome, so if you make it work before the release, please open a pull request with the necessary changes! Thank you |
So, after quite some time I am back at it. I managed to compile the preset for 0.3.20 and JavacCPP 1.5.7 without any code modification. The included example does not work though, impossible to find I use the code with Processing, and there is now a Processing version that uses arm64 🥳. No issue left for me here, it should all go smoothly once the next release is done. |
Let's keep this issue open for that. |
… PyTorch 1.12.1, DepthAI 2.17.2, ONNX Runtime 1.12.1, OpenSSL 3.0.5
… PyTorch 1.12.1, DepthAI 2.17.2, ONNX Runtime 1.12.1, OpenSSL 3.0.5
It's done! With commit 7d9084f LAPACK is now available for ARM on Android, iOS, Mac, etc. |
This has now been released with version 1.5.8. Enjoy! |
Hello,
I currently struggle with an ugly yet familiar issue, the library cannot load :
UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path:
I managed to install openblas to the current "stable" version supported by Javacpp presets : 0.3.19, with javaCPP 1.5.7.
With the example code, at version 1.5.7, I get this error (which may not be exactly the same) :
I use Java 17 and want to work with OpenCV in Processing 4 on my Mac. By default Opencv 4.5.5 on OSX comes with Openblas 0.3.20.
The Openblas_nolapack code does have any macosx-arm64 specific code, so maybe it fails at loading some dependencies ?
It is / was reported to work on OSX there #1069 . I saw the other issues with Openblas there bytedeco/javacv#1435, I guess it is not an easy dependency to work with.
Do you have an idea to solve this ?
Cheers,
Jeremy.
The text was updated successfully, but these errors were encountered: