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

MKL apparently not loaded #105

Closed
h-larsson opened this issue Jan 23, 2022 · 6 comments
Closed

MKL apparently not loaded #105

h-larsson opened this issue Jan 23, 2022 · 6 comments

Comments

@h-larsson
Copy link

I get the following error when trying to use MKL:

julia> using LinearAlgebra
julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
├ [ LP64] libblas.so
└ [ LP64] liblapack.so
julia> N = 100; A=rand(N,N); B = rand(N,N); C= A * B;
julia> using MKL
julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libmkl_rt.so
julia> C= A * B;
Error: no BLAS/LAPACK library loaded!

BLAS.get_config().loaded_libs[1].libname does exist. I am using Julia 1.7.1 and MKL v0.4.4.

@ViralBShah
Copy link
Contributor

Is this 32-bit linux? What architecture?

@h-larsson
Copy link
Author

x86_64 GNU/Linux 5.15.18-1-lts

@giordano
Copy link
Contributor

How did you install Julia?

@h-larsson
Copy link
Author

I am using Arch Linux and installed it from their repositories (julia 2:1.7.1-6).

@giordano
Copy link
Contributor

giordano commented Jan 31, 2022

Don't use that package. Use aur:julia-bin instead, which simply ships the official binaries:

jjulia> using LinearAlgebra

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libopenblas64_.so

julia> N = 100; A=rand(N,N); B = rand(N,N); C_openblas= A * B;

julia> using MKL

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libmkl_rt.so

julia> C_mkl = A * B;

julia> C_mkl  C_openblas
true

@h-larsson
Copy link
Author

Thanks! It works. Sorry that it seems to have nothing to do with the MKL package.

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

No branches or pull requests

3 participants