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!
6426 Discussions

omp_set_num_threads vs mkl_set_num_threads

xian-zhong_guous_cd-
138 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
138 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