-
Notifications
You must be signed in to change notification settings - Fork 27
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 Pardiso with multiple threads #42
Comments
The |
Something seems off with your MKL, it works for me
Perhaps upgrade your MKL? |
Sorry to open this again. Pardiso.MklInt = Int32
Testing DataType[MKLPardisoSolver, PardisoSolver]
Test Summary: | Pass Total
solving | 192 192
The factors have 14 nonzero entries.
The matrix has 0 positive and 0 negative eigenvalues.
PARDISO performed 0 iterative refinement steps.
The maximum residual for the solution X is 1.33e-15.
The factors have 13 nonzero entries.
The matrix has 3 positive and 1 negative eigenvalues.
PARDISO performed 0 iterative refinement steps.
The maximum residual for the solution X is 1.98e-14.
The factors have 289 nonzero entries.
PARDISO performed 0 iterative refinement steps.
The maximum residual for the solution is 4.48e-16.
procs: Test Failed at /Users/Micha/.julia/packages/Pardiso/yZsYO/test/runtests.jl:70
Expression: get_nprocs(ps) == 2
Evaluated: 1 == 2
Stacktrace:
[1] top-level scope at /Users/Micha/.julia/packages/Pardiso/yZsYO/test/runtests.jl:70
[2] top-level scope at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Test/src/Test.jl:1113
[3] top-level scope at /Users/Micha/.julia/packages/Pardiso/yZsYO/test/runtests.jl:67
Test Summary: | Pass Fail Total
procs | 1 1 2
ERROR: LoadError: Some tests did not pass: 1 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /Users/Micha/.julia/packages/Pardiso/yZsYO/test/runtests.jl:65
ERROR: Package Pardiso errored during testing Any idea what else I could try? |
Does it work if you do not have the non-MKL Pardiso loaded? Remove I had some issues with this when both having MKL and non-MKL Pardiso loaded in the same session (see #67). See the note in the README:
|
Thanks a lot. That seems to have solved the problem. That's a weird bug. Project Pardiso disabled: julia> Pardiso.show_build_log()
Pardiso library
===============
Looking for libraries with name: libpardiso600-MACOS-X86-64.dylib.
INFO: use the `JULIA_PARDISO` environment variable to set a path to the folder where the Pardiso library is located
Looking in "/Users/Micha/.julia/packages/Pardiso/yZsYO/deps" for libraries
did not find libpardiso, assuming PARDISO 5/6 is not installed
MKL Pardiso
=============
found MKLROOT environment varaible, enabling local MKL and ps = MKLPardisoSolver();
julia> set_nprocs!(ps, 2)
julia> get_nprocs(ps)
2 |
We have to open some libraries for non-MKL Pardiso to work and I am guessing one of them causes some issue with MKL... |
I am encountering a problem when trying to set the number of threads for the
MKLPardisoSolver
. In this example, I set the number of threads to 2:However, the last line
get_nprocs(ps)
returns1
. Running the script, produces the following output:Again it seems like only one thread is used. I am using a Late 2013 MacBook Pro with Julia 1.1. Multicore Pardiso 6.0 works for me
The text was updated successfully, but these errors were encountered: