Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7098 Discussions

OMP: Error #15: Initializing libiomp5mt.lib, but found libiomp5mt.lib already initialized.

Alexander_Schiftner
630 Views
Dear Forum users,
I'm using Pardiso from MKL on Windows. Since I updated to the most up to date version, I'm receiving the following error message.
OMP: Error #15: Initializing libiomp5mt.lib, but found libiomp5mt.lib already initialized.
OMP: Hint: This may cause performance degradation and correctness issues. Set environment variable KMP_DUPLICATE_LIB_OK=TRUE to ignore this ....
My program terminates with this error message. Interestingly, it does not happen with every call to Pardiso. Sometimes it will just work.
I thought this problem might be caused by static linking, so I switched to dynamic linking (DLLs), but this did not solve the problem.
I would be grateful for any hint.
Regards, Alex
0 Kudos
3 Replies
Gennady_F_Intel
Moderator
630 Views
Alex, please see this article. Is that your case?
0 Kudos
Alexander_Schiftner
630 Views
Dear Gennady,
many thanks for your answer. This is not my case. My application links against
libiomp5md.lib
mkl_intel_c_dll.lib
mkl_intel_thread_dll.lib
mkl_core_dll.lib
My application containts two custom DLLs, one depending on another, which both link againstlibiomp5md.lib. Is this a problem?
Alex
0 Kudos
TimP
Honored Contributor III
630 Views
It's a problem if libiomp5mt.lib is also linked in, as your error message indicates. Nowhere should there be a reference to libiomp5mt (or openmplink:static), as presence of both creates the situation referred to in the message.
0 Kudos
Reply