Quantcast
Channel: Clusters and HPC Technology
Viewing all articles
Browse latest Browse all 927

OpenMP and MKL

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>