-
Notifications
You must be signed in to change notification settings - Fork 47
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
cblas_dgemm returns incorrect results when the static feature of openblas-src is enabled on macOS #64
Comments
OpenMathLib/OpenBLAS#1088 looks similar but I'm not sure if it's the same issue as I haven't reproduced it in C yet. |
Removed the dependency on |
FWIW this issue remains even with #65. |
Updated the reproducer with #65 and a simpler matrix input and updated the description accordingly. |
According to the Rust Reference, an extern block is used to link a native library. I was thinking the extern crate declaration would do it but apparently it doesn't. This patch seems to fix the issue reported in blas-lapack-rs/openblas-src#64.
I managed to fix the issue with maoe/ndarray-dot-repro@4d94c73. Apparently, at least on macOS, the static feature needs an empty extern block with I guess the instructions on the wiki need updating. |
Closing this because there's nothing to be done in this crate. |
https://github.com/maoe/ndarray-dot-repro is a reproducer. It was minimized from code which used argmin + ndarrayl feature.
This reproducer uses the patched version of
openblas-src
from #65 so that static build works both on Linux and macOS Big Sur.The expected output of the main is
[1.0, 1.0, 1.0, 1.0]
but it returns the zero matrix on macOS when thestatic
feature ofopenblas-src
is enabled.FWIW, I haven't been able to reproduce the issue in C on macOS:
The text was updated successfully, but these errors were encountered: