Hello,
I have a program where at one point I call a function.
Inside this function I have OpenMP parallelization AND I have MKL/BLAS calls. I know that the BLAS are never called inside an OpenMP parallel block.
I would like to specify the same number of threads be used in both parallel blocks in this function. So I call
omp_set_num_threads(2);
mkl_set_num_threads_local(2);
The first call goes through with no problem. But the second crashes. This only happens in the Release version of the code. In the Debug version there is no crash.
Can anybody tell me whether there is a problem with my calls above and what I should be doing differently?
Thanks.