We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e02f3 commit 85a11cdCopy full SHA for 85a11cd
src/numpy.jl
@@ -64,8 +64,12 @@ function npyinitialize()
64
numpy = pyimport("numpy")
65
66
# emit a warning if both Julia and NumPy are linked with MKL (#433)
67
- if LinearAlgebra.BLAS.vendor() === :mkl &&
68
- LinearAlgebra.BLAS.BlasInt === Int64 && hasproperty(numpy, "__config__")
+ julia_mkl = @static if VERSION < v"1.7"
+ LinearAlgebra.BLAS.vendor() === :mkl
69
+ else
70
+ any(contains("mkl"), getfield.(LinearAlgebra.BLAS.get_config().loaded_libs, :libname))
71
+ end
72
+ if julia_mkl && LinearAlgebra.BLAS.BlasInt === Int64 && hasproperty(numpy, "__config__")
73
config = numpy."__config__"
74
if hasproperty(config, "blas_opt_info")
75
blaslibs = get(config."blas_opt_info", Vector{String}, "libraries", String[])
0 commit comments