Skip to content
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/LAPACK support on M1 Macs #1198

Closed
LeoYulinLi opened this issue Jul 8, 2022 · 3 comments
Closed

OpenBLAS/LAPACK support on M1 Macs #1198

LeoYulinLi opened this issue Jul 8, 2022 · 3 comments

Comments

@LeoYulinLi
Copy link

Hello,

I am getting this error when trying to invoke a lapack function:

'int org.bytedeco.openblas.global.openblas.LAPACKE_dsyevd(int, byte, byte, int, java.nio.DoubleBuffer, int, java.nio.DoubleBuffer)'
java.lang.UnsatisfiedLinkError: 'int org.bytedeco.openblas.global.openblas.LAPACKE_dsyevd(int, byte, byte, int, java.nio.DoubleBuffer, int, java.nio.DoubleBuffer)'
	at org.bytedeco.openblas.global.openblas.LAPACKE_dsyevd(Native Method)
	at smile.math.blas.openblas.OpenBLAS.syevd(OpenBLAS.java:629)
	at smile.math.matrix.Matrix.eigen(Matrix.java:1628)
	at smile.projection.PCA.fit(PCA.java:176)
...

I tried both 0.3.19-1.5.7 and 0.3.20-1.5.8-SNAPSHOT with azul JDK 17.0.3 and was still getting the same error.

These are my javacpp dependencies:

        implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.8-SNAPSHOT'
        implementation group: 'org.bytedeco', name: 'openblas', version: '0.3.20-1.5.8-SNAPSHOT'
        implementation group: 'org.bytedeco', name: 'openblas-platform', version: '0.3.20-1.5.8-SNAPSHOT'
        implementation group: 'org.bytedeco', name: 'arpack-ng', version: '3.8.0-1.5.8-SNAPSHOT'
        implementation group: 'org.bytedeco', name: 'arpack-ng-platform', version: '3.8.0-1.5.8-SNAPSHOT'

Any idea on what might have caused this?

Thanks!

Leo

@saudet
Copy link
Member

saudet commented Jul 8, 2022

Duplicate of #1171

@saudet saudet marked this as a duplicate of #1171 Jul 8, 2022
@saudet saudet closed this as completed Jul 8, 2022
@saudet
Copy link
Member

saudet commented Aug 11, 2022

This has been fixed with OpenBLAS 0.3.21! Please give it a try with the snapshots: http://bytedeco.org/builds/

@LeoYulinLi
Copy link
Author

This has been fixed! Please give it a try with the snapshots: http://bytedeco.org/builds/

It works! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants