-
Notifications
You must be signed in to change notification settings - Fork 9
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
RuntimeError: /usr/lib/libopenblas.so: undefined symbol: LAPACKE_dgesvd #4
Comments
If libopenblas.so does not include LAPACKE API, it needs to load liblapacke.so. Fiddle.dlopen("/usr/lib/libopenblas.so")
Numo::Linalg::Lapack.dlopen("/usr/lib/liblapacke.so") |
Can confirm it works on Ubuntu 16.04, though the second file has an extra '.3' in the name: Fiddle.dlopen("/usr/lib/libopenblas.so")
Numo::Linalg::Lapack.dlopen("/usr/lib/liblapacke.so.3") Any chance to make this the default when using OpenBLAS? |
Does this short name cause an error on Ubuntu?
|
I confirm the short name causes an error on Ubuntu. Full trace:
Should I try with your commit 3c94713 ? |
numo-linalg 0.1.2 will work with version suffix. |
I have also checked loading openblas without configuration on MSYS2. |
I am currently working to get Travis CI to pass. I noticed this line when it installs
|
I confirm ( 2.4.2 :001 > require 'numo/narray'
=> true
2.4.2 :002 > require 'numo/linalg'
=> true
2.4.2 :003 > a = Numo::DFloat.new(3,3).seq
=> Numo::DFloat#shape=[3,3] [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
2.4.2 :004 > Numo::Linalg::Lapack.call(:geev, a, jobvl: false, jobvr: true)
=> [Numo::DFloat#shape=[3] [...], Numo::DFloat#shape=[3] [...], nil, Numo::DFloat#shape=[3,3] [...], 0]
2.4.2 :005 > Numo::Linalg.eig a
=> [Numo::DComplex#shape=[3] [...], nil, Numo::DComplex#shape=[3,3] [...]]
2.4.2 :006 > Numo::Linalg.svd a
=> [Numo::DFloat#shape=[3] [...], Numo::DFloat#shape=[3,3] [...], Numo::DFloat#shape=[3,3] [...]] Does that work for you @mrkn -san? Can we close this issue? |
UPDATE: it seems Travis CI is having the same issue as @mrkn -san. |
The error is because "liblapacke" package is not installed. Please add it to config file. |
Great! It works! Thank you so much Tanaka-san! Installation on Travis is now working. I need to find out why some of my tests are red although they are all green on my machine, but oh well, I will fix that. |
When I use Ubuntu Xenial, Numo::Linalg.svd raises RuntimeError because it cannot resolve the symbol
LAPACKE_dgesvd
.As I investigated
libopenblas.so
, I found that the library hasdgesvd_
but notLAPACKE_dgesvd
.The text was updated successfully, but these errors were encountered: