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

DftiCommitDescriptor() in C example provided by Intel crashes

blackrock
Beginner
1,057 Views

I'm trying to run "dft-basic_sp_complex_dft_1d" C example provided by Intel,  and it crashes silently during call to DftiCommitDescriptor().

 

Details:

- OneMKL v2022.2.0.9563  (offline installer) w_onemkl_p_2022.2.0.9563_offline.exe

- Windows 10 Enteprise 10.0.19044 Build 19044

- CPU: Intel i7-9850H @2.6GHz

- Visual Studio 2019 Pro, v16.7.2

 

Replication:

- Unzip "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_core_c.zip" into "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c" folder

- open VS2019 command prompt (make sure cmake for windows is installed already)

mkdir build && cd build

cmake .. -DCMAKE_C_COMPILER=cl -DTARGET_DEVICES=cpu -DCMAKE_BUILD_TYPE=Release

 

cmake --build . --verbose

It will build all examples….whatever….not in Release but in Debug folder 

 

Obviously, the build fails bring runtime dependencies, so you need to copy from "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64" to "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c\build\Debug"  the following:

- mkl_intel_thread.2.dll

- mkl_core.2.dll

- mkl_def.2.dll

- mkl_avx2.2.dll

 

Now run dft-basic_sp_complex_dft_1d.exe and watch it spectacularly crash (silently) half-way through application, during DftiCommitDescriptor() call:

 

Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications
Example basic_sp_complex_dft_1d
Forward and backward single-precision complex in-place 1D FFTs
Configuration parameters:
DFTI_PRECISION = DFTI_SINGLE
DFTI_FORWARD_DOMAIN = DFTI_COMPLEX
DFTI_DIMENSION = 1
DFTI_LENGTHS = {7}
Create DFTI descriptor
Commit DFTI descriptor

 

I am beginning to have serious doubts if trying to use Intel MKL is a good idea, if their own examples simply do not work out of the box...

 

0 Kudos
1 Solution
VidyalathaB_Intel
Moderator
1,032 Views

Hi Derek,

 

Thanks for reaching out to us.

Could you please try the same from Intel oneAPI command prompt (where the oneAPI environment is initialized automatically by the setvars.bat script file) and see if you still observe the crash?

I tried running the examples from the Intel command prompt and here is the screenshot of the output of dft examlple.

VidyalathaB_Intel_0-1665069207082.png

 

Regards,

Vidya.

 

View solution in original post

0 Kudos
3 Replies
VidyalathaB_Intel
Moderator
1,033 Views

Hi Derek,

 

Thanks for reaching out to us.

Could you please try the same from Intel oneAPI command prompt (where the oneAPI environment is initialized automatically by the setvars.bat script file) and see if you still observe the crash?

I tried running the examples from the Intel command prompt and here is the screenshot of the output of dft examlple.

VidyalathaB_Intel_0-1665069207082.png

 

Regards,

Vidya.

 

0 Kudos
blackrock
Beginner
999 Views

Hi Vidya,

 

Thank you for reply - it seems to run OK from IntelOne API cmd for VS2019 x64

I will need to check runtime dependencies from that environment vs dependencies in "deployment"

 

Regards,

Derek

0 Kudos
VidyalathaB_Intel
Moderator
989 Views

Hi Derek,


Thanks for accepting the solution.

Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.


Have a Nice Day!


Regards,

Vidya.



0 Kudos
Reply