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

Pardiso interaction with MKL (also using the internal Pardiso) #192

Open
kalmarek opened this issue Jul 7, 2024 · 2 comments
Open

Pardiso interaction with MKL (also using the internal Pardiso) #192

kalmarek opened this issue Jul 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kalmarek
Copy link
Contributor

kalmarek commented Jul 7, 2024

Just to let you know that this may happen:
I've run into hard crashes (segfaults) when using Pardiso KKT solver in COSMO. Compounding circumstances: using SCS_MKL_jll solver which also happen to call MKL Pardiso, but does this directly in c-library.

  • COSMO in version 0.8.9
  • SCS in version 2.0.0
  • SCS_MKL_jll in version 3.2.4

part of trace:

[2986] signal (11.1): Segmentation fault
in expression starting at /home/runner/work/2306.12358/2306.12358/scripts/Sp2nZ_Level.jl:45
mkl_pds_lp64_blkl_ll_real._omp_fn.0 at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_gnu_thread.so.2 (unknown line)
GOMP_parallel at /workspace/srcdir/gcc-12.1.0/libgomp/parallel.c:178
mkl_pds_lp64_blkl_ll_real at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_gnu_thread.so.2 (unknown line)
mkl_pds_lp64_sssfct_pardiso at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_core.so (unknown line)
mkl_pds_lp64_factorize_pardiso at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_core.so (unknown line)
mkl_pds_lp64_do_all_pardiso_fc at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_core.so (unknown line)
mkl_pds_lp64_pardiso_c at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_core.so (unknown line)
mkl_pds_lp64_pardiso at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_core.so (unknown line)
pardiso_ at /home/runner/.julia/artifacts/d670351e2fcdac07d02cf73bda5f53e9bea796a6/lib/libmkl_rt.so (unknown line)
ccall_pardiso at /home/runner/.julia/packages/Pardiso/z4YUw/src/mkl_pardiso.jl:67
pardiso at /home/runner/.julia/packages/Pardiso/z4YUw/src/Pardiso.jl:363
pardiso at /home/runner/.julia/packages/Pardiso/z4YUw/src/Pardiso.jl:368 [inlined]
update_rho! at /home/runner/.julia/packages/COSMO/G1pYI/src/linear_solver/kktsolver_pardiso.jl:163
unknown function (ip: 0x7f0313bd72af)
_jl_invoke at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/gf.c:2940
macro expansion at ./timing.jl:393 [inlined]
update_rho_vec! at /home/runner/.julia/packages/COSMO/G1pYI/src/parameters.jl:86
adapt_rho_vec! at /home/runner/.julia/packages/COSMO/G1pYI/src/parameters.jl:67
apply_rho_adaptation_rules! at /home/runner/.julia/packages/COSMO/G1pYI/src/solver.jl:271
optimize! at /home/runner/.julia/packages/COSMO/G1pYI/src/solver.jl:153
optimize! at /home/runner/.julia/packages/COSMO/G1pYI/src/MOI_wrapper.jl:146 [inlined]
optimize! at /home/runner/.julia/packages/MathOptInterface/aJZbq/src/MathOptInterface.jl:122 [inlined]
optimize! at /home/runner/.julia/packages/MathOptInterface/aJZbq/src/Utilities/cachingoptimizer.jl:321

Full trace available here (inspect the failed task).

@kalmarek kalmarek added the bug Something isn't working label Jul 7, 2024
@migarstka
Copy link
Member

Hi @kalmarek,
So this only happens if SCS_MKL_jll is also installed?

@migarstka
Copy link
Member

Do you have a minimum working example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants