-
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
Fixes for self-installed MKL from intel oneAPI #99
Conversation
j-fu
commented
Feb 15, 2024
- introduces Pardiso.mkl_is_available() for use in runtests.jl
- test load mkl in init (like pardiso)
- some link updates, hint at LD_LIBRARY_PATH
* introduces Pardiso.mkl_is_available() for use in runtests.jl * test load mkl in __init__ (like pardiso) * some link updates, hint at LD_LIBRARY_PATH
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #99 +/- ##
==========================================
+ Coverage 39.68% 40.67% +0.99%
==========================================
Files 4 4
Lines 378 386 +8
==========================================
+ Hits 150 157 +7
- Misses 228 229 +1 ☔ View full report in Codecov by Sentry. |
* Run `Pardiso.show_build_log()` to see the build log for additional | ||
information. | ||
* Note that the `MKLROOT` environment variable must be set whenever using the library. | ||
* Note that the `MKLROOT` environment variable must be set, and `LD_LIBRARY_PATH` must contain `$MKLROOT/lib` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? I don't think I have had to explicitly set this before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The advise by intel is to run
source /opt/intel/oneapi/setvars.sh
This sets MKLROOT and adds the lib directory to the LD_LIBRARY_PATH . I accidently run with only MKLROOT set, and libmkl_rt was not found as a consequence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Kristoffer Carlsson <[email protected]>
* make error msg less specific if it is not available.
* set to true in __init__ if libmkl_rt cannot be loaded * checked by mkl_is_available(), so MKLPardisoSolver() cannot be instantiated if load failed
IMHO ready to merge. |
Would first merge this and then retry the registry attempt at e62b47a |