we started using MKL library for add-ons to CAD software. We combine several MKL functions in separate dll that is subsequently used by our software.DLL is being coded in C++ and compiled using MS VS 2005.
Our dll is linked with the following MKL libraries (per Link Advisor output) mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib. However during test run software crashed with message: "OMP: Error #15: Initializing libiomp5md.dll, but found libguide40.lib already initialized ...." Setting environment variable KMP_DUPLICATE_LIB_OK = TRUE seems to solve this issue, however we are not satisfied with this approach.
After searching this forum I found that Intel suggests to link libiomp5md dynamically to avoid the crash, but that is exactly what we are doing. At least we told the Link Advisor that we want to link dynamically and used the output. Am I missing something about linking procedure?
Another problem that arrised after switching to MKL is that software crashed on our customer's machine (XEON 3-1245 with Windows 7 Pro SP1 64-bit) and runs fine on everything else we were able to test it with. No error message is available in this case. We are unable to actively debug this issue, because it is not repeatable on any of our machines. We would like to solve it nonetheless. Could you provide insight to this problem?
P.S. Is Intel Premier support functional? I was not able to log in there after multiple attempts and multiple password resets.