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

Unhandled exception at 0x68945314 (KernelBase.dll). Module not found.

AhmadOneAPI
Beginner
925 Views

I have the same problem posted on Intel.

 

First Machine:

I am using Visual Studio 2022 Community and I am using s_init_Helmholtz_3D from MKL library.

 

My VS Solution is built successfully using the MKL lib and runs successfully with MKL DLLs. My VS Solution has a folder named External that contains all the dependencies including, lib, DLL, and header files in:

External/bin

External/include

External/lib

External/debug/bin

External/debug/lib

 

My Solution uses the following lib files:

Iphlpapi.lib
ws2_32.lib
wsock32.lib
netapi32.lib
mkl_core.lib
mkl_rt.lib
mkl_sequential.lib
mkl_sycl.lib
mkl_tbb_thread.lib

As a Post-Event, my VS solution copies all the DLLs inside External/debug/bin and External/bin to $(SolutionDir)/x64/Debug and $(SolutionDir)/x64/Release, respectively.

 

Second Machine (Similar to the First Machine): The Issue:

I can successfully build the same Solution using Visual Studio 2022 Community on a different Windows machine but when I run it I get the following error.

Unhandled exception at 0x68945314 (KernelBase.dll). Module not found.

 

On the second machine, I have made sure OneAPI install folder is not in the system Path. My VS Solution is self-contained and does not use any dependencies other than the one in the External folder (I am not using vcpkg VS integration) and I expect the executable to work.

 

Even as another test, I copied the build folder $(SolutionDir)/x64/Debug and $(SolutionDir)/x64/Release from the first machine to the second machine and ran my executable but the problem still exits. These build folders have all the dependent MKL DLLs in them. This test is trying to tell me something about my crashing executable on the second machine but I can't figure it out.

 

I need help on what I could be missing that is causing this. I feel like my VS solution is not using the correct lib file and/or DLLs. The confusing part for me is that, then why is it working on the first machine?

0 Kudos
2 Replies
Ruqiu_C_Intel
Moderator
816 Views

Hi,

 

We recommend you to use neMKL link advisor below for oneMKL compile and linkage options.

https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html

 

If you still have problem, please provide out a simple reproducer.

 

BRs,

Ruqiu


0 Kudos
Ruqiu_C_Intel
Moderator
583 Views

As there was no response, I assume that the above link might have been able to resolve the issue.

I am closing this thread for now.

Please open a separate thread if you face any further issues.


0 Kudos
Reply