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

Application Shutdown on call to DftiCreateDescriptor for Intel MKL c++

Alejandro_V_1
Beginner
333 Views

Hello all, 

I have built a C++plugin to that employs MKL's fft libraries for filtering purposes. This plugin is used by a C++ compute system that generates data on demand by any other application. This compute system is used by a C# application. When I request data of my plugin, I can debug up to my DftiCreateDescriptor call only for my application to shut down on execution of said call.

The following is the output generated:

The thread 'Win64 Thread' (0x3488) has exited with code 2 (0x2).
The thread 'Cache thread #6' (0x1444) has exited with code 2 (0x2).
The thread 'Main thread' (0x2bbc) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x33b0) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x1974) has exited with code 2 (0x2).
The thread 'Cache thread #0' (0x4d8) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x3fec) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x2f84) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x314c) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x33b8) has exited with code 2 (0x2).
The thread 'Network thread' (0x3310) has exited with code 2 (0x2).
The thread 'Cache thread #5' (0x2898) has exited with code 2 (0x2).
The thread 'Cache thread #2' (0x2e30) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x28ac) has exited with code 2 (0x2).
The thread 'Worker thread' (0x3450) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x960) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x464) has exited with code 2 (0x2).
The thread 'Cache thread #4' (0x275c) has exited with code 2 (0x2).
The thread 'Cache thread #1' (0x2520) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x28f8) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x1d44) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x2aa0) has exited with code 2 (0x2).
The thread 'Worker thread' (0xe18) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x2f64) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x33c4) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x2178) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x37dc) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0xec0) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x3ed4) has exited with code 2 (0x2).
The thread 'Cache thread #3' (0x3df4) has exited with code 2 (0x2).
The thread 'Worker thread' (0x3dcc) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x2bb0) has exited with code 2 (0x2).
The thread 'Cache thread #7' (0x3484) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x3978) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x29c0) has exited with code 2 (0x2).
The thread 'Worker thread' (0x3280) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x3334) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0x3160) has exited with code 2 (0x2).
The thread 'Win64 Thread' (0xdd0) has exited with code 2 (0x2).

I've gone through my plugin setup back and forth and see that my linking is done correctly, but I don't know what's causing my symptoms.

I am using intel MKL 11.2 with Microsoft Visual Stuodio 2010. I am setting up my plugin to use Parallel libraries and ILP64.

might be loosely related to this SO post:

http://stackoverflow.com/questions/19728499/intel-mkl-functions-calling-terminateprocess-internally

0 Kudos
2 Replies
Ying_H_Intel
Employee
333 Views

Hi Alejandro V.

Could you please provide a small test case ?    It seems there is one in http://stackoverflow.com/questions/19728499/intel-mkl-functions-calling-, you may reform it according your application scene and let us know the reproduced steps?

Best Regards,

Ying

 

 

0 Kudos
Bernard
Valued Contributor I
333 Views

I think that return code 0x2 is related to failure to find specified path. Can you insert GetLastError() function call?

0 Kudos
Reply