Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
6466 Discussions

omp_set_num_threads vs mkl_set_num_threads

xian-zhong_guous_cd-
157 Views

According MKL documentation, omp_set_num_threads is enough to define the num of threads used by MKL. But that's not the case: I have to use mkl_set_num_threads.

0 Kudos
1 Reply
Zhen_Z_Intel
Employee
157 Views

Hi,

You could use omp or mkl for threading control, but the mkl has a higher priority. I do not clear what kind of problem you are facing. But we recommend to use mkl_set_num_threads() to set. Thanks.

Best regards,
Fiona

Reply