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

Cannot open libmkl_rt #18

Closed
aminya opened this issue Nov 13, 2019 · 3 comments
Closed

Cannot open libmkl_rt #18

aminya opened this issue Nov 13, 2019 · 3 comments

Comments

@aminya
Copy link
Contributor

aminya commented Nov 13, 2019

Testing on Windows with the latest MKL on Julia 1.4:

julia> using LinearAlgebra

julia> BLAS.vendor()
:mkl

julia> using Libdl

julia>dlopen(:libmkl_rt; throw_error=true)
ERROR: could not load library "libmkl_rt"
The specified module could not be found.

Stacktrace:
 [1] dlopen(::String, ::UInt32; throw_error::Bool) at C:\Julia-1.4.0-DEV\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109
 [2] #dlopen#2 at C:\Julia-1.4.0-DEV\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109 [inlined]
 [3] top-level scope at none:0

This came up from this PR to VML.jl : JuliaMath/IntelVectorMath.jl#17

@aminya
Copy link
Contributor Author

aminya commented Nov 13, 2019

Opening the library explicitly solves the issue:

dlopen("C:\\Users\\yahyaaba\\.julia\\packages\\MKL\\goLVK\\deps\\usr\\bin\\mkl_rt.dll"; throw_error=true)
Ptr{Nothing} @0x00007ffbf70f0000

It appears that these are related to path issues that we had

@aminya
Copy link
Contributor Author

aminya commented Nov 13, 2019

Turns out, on Windows the name of dll is :mkl_rt instead of :libmkl_rt, and so the following works:

using Libdl
dlopen(:mkl_rt)

@aminya aminya closed this as completed Nov 13, 2019
@Crown421
Copy link

Pull request has been updated with this.

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

2 participants