-
Notifications
You must be signed in to change notification settings - Fork 302
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
correctly determine INTEL_ROOT_DEFAULT using MKLROOT env variable #1706
Conversation
Hello, this change will break the compilation on Windows. For the environment like Arch, you can set variable environment like |
I mean, i could add a check for the OS and then check the paths, not sure if this would help anyone but me though. |
If you don't set anything, |
That's the neat part! I didn't set |
I see, You can do like this:
|
Alrighty, i'll do that. |
Don't worry about squashing. I'll do when merge it. |
As mentioned in the issue #1703 ,
MKLROOT
env variable is set to/opt/intel/oneapi/mkl/latest
, which makes sense. However,CMakeLists.txt
tries to find the root of INTEL by going one dir up.set(INTEL_ROOT_DEFAULT $ENV{MKLROOT}/..
. This wouldn't work, as theMKLROOT
points to thelatest
, notoneapi
. Therefore, to fix this - it's better to go 3 directories up, so that ifMKLROOT
is/opt/intel/oneapi/mkl/latest
, it would correctly point to the root of INTEL.