Hello,
We got random crashes with VML functions, e.g., zsqrt(), if the following conditions are ALL met:
1) on a Windowns 7 machine
2) MKL is linked through single dynamic library mkl_rt.lib
3) The VML function is called within an Intel TBB parallel session, e.g., parallel_for()
4) TBB is using more than one (1) thread
The crash occurs no matter which library mkl_rt specify to use (intel threading, sequential or tbb threading).
A piece of code that can be used to describe what we are doing is attached. In the testing, we wrote a batch file to run the program repeatedly to catch the random crash. Normally we would catch the crash within 100 times of running.
We tried linking directly with mkl_intel_threading_dll.lib, mkl_sequential_dll.lib or mkl_tbb_threading_dll.lib, all are fine with no crash. The problem seems to be with linking through mkl_rt alone.
We use the most updated MKL 2018.3.210
Does anyone run into the same issue? Many thanks for any input/response.
Ling