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

Exception Unhandled at KernelBase.dll using MKL functions

Sci222
New User
45 Views

There is code for example:

 

#include "mkl.h"
#include <exception>
#include <iostream>
 
int main(int argc, char* argv[])
{
int VecLen = 10;
MKL_Complex8 *VecCol = new MKL_Complex8[VecLen];
MKL_Complex8 *VecColRes = new MKL_Complex8[VecLen];
 
for (int i = 0; i < VecLen; i++)
{
VecCol[i] = { (float)VecLen - i,(float)i };
}
 
try
{
vcExp(VecLen, VecCol, VecColRes);
}
catch (std::exception& e)
{
std::cout << e.what() << std::endl;
}
 
return 0;
}
 
Screenshot with the code in Visual Studio is attached.
Problem is unhandled exception is appeared in line where vcExp() function is using.
Text of the error is "Unhandled exception at 0x00007FFFB952B699 (KernelBase.dll) in Sandbox project.exe: 0xC06D007E: Module not found (parameters: 0x0000003E4A2FF660)." Screenshot of the error is attached.
 
I had this problem is real project, and it occures only in run-time. I replaced this vcExp() function from MKL with exp function from IPP ippsExp_32fc_A24(). And it worked. But then i got same problem in this real project but in line with DftiCommitDescriptor() function from MKL. Of course i can replace all MKL functions with IPP functions, but i want to figure out why is that happening.
 
I use Community Version of Visual Studio 2022 and latest version of MKL. Please help me to find out what is wrong with MKL here! Thank you in advance!
Labels (1)
0 Kudos
0 Replies
Reply