MKL is trying to be flexible as it has different potential levels of parallelism inside. Having MKL_ and OMP_NUM_THREADS can be beneficial in programs where you may want to use your own OpenMP but restrict MKL's or vice versa.

A good article on the different options that MKL provides is here:
http://www.diracprogram.org/doc/release-12/installation/mkl.html

Official Intel guide is here:
https://software.intel.com/en-us/articles/recommended-settings-for-calling-intel-mkl-routines-from-multi-threaded-applications

MC
--
Martin Cuma
Center for High Performance Computing
Department of Geology and Geophysics
University of Utah


Reply via email to