- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 (wtf)
Obviously, the build fails bring runtime dependencies (knock knock?), 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, in style) 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...sigh
BTW: i am also experiencing a C++ exception when using the above libs/tools in my own application...this time the first call into MKL DFT spectacularly crashes...oh dear....
char version[DFTI_VERSION_LENGTH];
::DftiGetValue(0, DFTI_VERSION, version);
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page