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 "libmkl_rt.dylib" file not found when evaluating PTDF matrix with "MKLPardiso" method #45

Closed
alefcastelli opened this issue Jul 28, 2023 · 4 comments

Comments

@alefcastelli
Copy link
Collaborator

Here the error:

ERROR: could not load library "@rpath/libmkl_rt.dylib"
dlopen(@rpath/libmkl_rt.dylib, 0x0001): tried: '/Applications/Julia-1.8.app/Contents/Resources/julia/lib/julia/libmkl_rt.dylib' (no such file), '/Applications/Julia-1.8.app/Contents/Resources/julia/bin/../lib/libmkl_rt.dylib' (no such file)
Stacktrace:
  [1] ccall_pardisoinit(ps::Pardiso.MKLPardisoSolver)
    @ Pardiso ~/.julia/packages/Pardiso/GDj1P/src/mkl_pardiso.jl:47
  [2] pardisoinit
    @ ~/.julia/packages/Pardiso/GDj1P/src/Pardiso.jl:196 [inlined]
  [3] solve!(ps::Pardiso.MKLPardisoSolver, X::Matrix{Float64}, A::SparseArrays.SparseMatrixCSC{Float64, Int64}, B::Matrix{Float64}, T::Symbol)
    @ Pardiso ~/.julia/packages/Pardiso/GDj1P/src/Pardiso.jl:238
  [4] solve!
    @ ~/.julia/packages/Pardiso/GDj1P/src/Pardiso.jl:228 [inlined]
  [5] _calculate_PTDF_matrix_MKLPardiso(A::SparseArrays.SparseMatrixCSC{Int8, Int64}, BA::SparseArrays.SparseMatrixCSC{Float64, Int64}, ref_bus_positions::Set{Int64}, dist_slack::Vector{Float64})
    @ PowerNetworkMatrices ~/Documents/GitHub/PowerNetworkMatrices.jl/src/ptdf_calculations.jl:320
  [6] calculate_PTDF_matrix_MKLPardiso
    @ ~/Documents/GitHub/PowerNetworkMatrices.jl/src/ptdf_calculations.jl:363 [inlined]
  [7] _buildptdf(branches::Vector{PowerSystems.ACBranch}, buses::Vector{PowerSystems.Bus}, bus_lookup::Dict{Int64, Int64}, dist_slack::Vector{Float64}, linear_solver::String)
    @ PowerNetworkMatrices ~/Documents/GitHub/PowerNetworkMatrices.jl/src/ptdf_calculations.jl:81
  [8] PTDF(branches::Vector{PowerSystems.ACBranch}, buses::Vector{PowerSystems.Bus}; dist_slack::Vector{Float64}, linear_solver::String, tol::Float64)
    @ PowerNetworkMatrices ~/Documents/GitHub/PowerNetworkMatrices.jl/src/ptdf_calculations.jl:402
@alefcastelli alefcastelli added the bug Something isn't working label Jul 29, 2023
@alefcastelli alefcastelli closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2023
@alefcastelli
Copy link
Collaborator Author

alefcastelli commented Jul 31, 2023

issue seems to affect MacOS machines only for now.

@alefcastelli alefcastelli reopened this Jul 31, 2023
@jd-lara jd-lara removed the bug Something isn't working label Aug 4, 2023
@jd-lara
Copy link
Member

jd-lara commented Aug 4, 2023

This is an upstream issue

@claytonpbarrows
Copy link
Member

is there a resoluton? I can't precompile PSI on my machine.

@jd-lara
Copy link
Member

jd-lara commented Aug 16, 2023

This shouldn't cause a precompilation issue

@jd-lara jd-lara closed this as completed Sep 16, 2023
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