Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Community in read-only mode during platform upgrade. Learn more​>

bug in MKLConfig.cmake (2024.0)

Arnout
Beginner
1,944 Views

Hello everyone.

 

I got an error about OMP_DLL_DIR not being found and I think it's a bug in MKLConfig.cmake

Line 905 of MKLConfig.cmake I changed to 

 

set(OMP_LIBNAME ${LIB_PREFIX}${MKL_OMP_LIB})

 

and I added "../../compiler/latest/lib" to PATH_SUFFIXES and now everything is working again.

 

set(MKL_SDL_THREAD_ENV "INTEL")
set(OMP_LIBNAME ${LIB_PREFIX}${MKL_OMP_LIB})

find_library(OMP_LIBRARY ${OMP_LIBNAME}
HINTS $ENV{LIB} $ENV{LIBRARY_PATH} $ENV{MKLROOT} ${MKL_ROOT} $ENV{CMPLR_ROOT}
PATH_SUFFIXES "lib" "lib/${MKL_ARCH}"
"lib/${MKL_ARCH}_lin" "lib/${MKL_ARCH}_win"
"linux/compiler/lib/${MKL_ARCH}"
"linux/compiler/lib/${MKL_ARCH}_lin"
"windows/compiler/lib/${MKL_ARCH}"
"windows/compiler/lib/${MKL_ARCH}_win"
"../compiler/lib/${MKL_ARCH}_lin" "../compiler/lib/${MKL_ARCH}_win"
"../compiler/lib/${MKL_ARCH}" "../compiler/lib" "compiler/lib"
"../../compiler/latest/lib"
"../../compiler/latest/linux/compiler/lib/${MKL_ARCH}"
"../../compiler/latest/linux/compiler/lib/${MKL_ARCH}_lin"
"../../compiler/latest/windows/compiler/lib/${MKL_ARCH}"
"../../compiler/latest/windows/compiler/lib/${MKL_ARCH}_win"
"../../compiler/latest/mac/compiler/lib"
NO_DEFAULT_PATH)

 

Cheers,

 

Arnout

0 Kudos
1 Solution
Mahan
Moderator
1,846 Views

Hi Arnout,

​

Thanks for the information.

Could you please try with the latest release of oneAPI 2024.1, and let me know if there is any issue.



View solution in original post

2 Replies
Mahan
Moderator
1,847 Views

Hi Arnout,

​

Thanks for the information.

Could you please try with the latest release of oneAPI 2024.1, and let me know if there is any issue.



Arnout
Beginner
1,817 Views

Hi Mahan,

 

My code compiles just fine now.

 

Thanks,

 

Arnout

0 Kudos
Reply