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_jll does not function properly on Mac in Julia 1.4 #915

Closed
KristofferC opened this issue Apr 21, 2020 · 1 comment · Fixed by #922
Closed

MKL_jll does not function properly on Mac in Julia 1.4 #915

KristofferC opened this issue Apr 21, 2020 · 1 comment · Fixed by #922

Comments

@KristofferC
Copy link
Member

KristofferC commented Apr 21, 2020

Based on issue JuliaMath/IntelVectorMath.jl#46, I could repro the hang on Mac with Julia 1.4 using for example:

using MKL_jll
gamma1(x) = (x = copy(x); ccall((:vdTGamma, libmkl_rt), Cvoid, (Int32, Ptr{Float64}, Ptr{Float64}), length(x), x, x); x);
gamma1([1.0, 2.0])

Note that this works in Julia 1.3, Julia 1.4-RC2 and locally built Julia. When I used my local installation of MKL it works:

julia> ENV["MKLROOT"]
"/opt/intel/compilers_and_libraries_2020.0.166/mac/mkl"
julia> const libmkl_rt = "@rpath/libmkl_rt.dylib";
julia> gamma1(x) = (x = copy(x); ccall((:vdTGamma, libmkl_rt), Cvoid, (Int32, Ptr{Float64}, Ptr{Float64}), length(x), x, x); x);
julia> gamma1([1.0, 2.0]) # works
2-element Array{Float64,1}:
 1.0
 1.0

I then looked at what the difference was between the MKL_jll provided MKL and my local installation. One file had a different hash: libmkl_intel_thread.dylib. Copying the one over from my local MKL to the MKL_jll artifact library made the code start working.

So my conclusion is that the libmkl_intel_thread.dylib that is provided by MKL_jll is somehow faulty.

@KristofferC
Copy link
Member Author

Alternatively, the things creating these logs

 update_linkage_libmkl_intel_thread.dylib_libiomp5.dylib.log
 update_rpath_libmkl_intel_thread.dylib_libiomp5.dylib.log

messes something up.

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

Successfully merging a pull request may close this issue.

1 participant