We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e3008 commit f393599Copy full SHA for f393599
src/numpy.jl
@@ -64,8 +64,8 @@ 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 = any(contains("mkl"), getfield.(BLAS.get_config().loaded_libs, :libname))
+ if julia_mkl && LinearAlgebra.BLAS.BlasInt === Int64 && hasproperty(numpy, "__config__")
69
config = numpy."__config__"
70
if hasproperty(config, "blas_opt_info")
71
blaslibs = get(config."blas_opt_info", Vector{String}, "libraries", String[])
0 commit comments