Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7222 Discussions

Multi-threaded performance on MKL on highly loaded CPUs....

Tony_Garratt
Beginner
465 Views

Suppose I have dual core machine and I am using MKL in my application. I have not set MKL_NUM_THREADS, so my MKL routines will try to use both cores. Suppose though that another application is hammering both my cores; will MKL release that both cores are fully utilised and will back off and use only 1?

This is not stated anywhere in the documentation (unless I missed it), so some clarification would be helpful please.

thanks!
Tony
0 Kudos
2 Replies
TimP
Honored Contributor III
465 Views
No, I don't expect MKL to perform any checks on which cores are busy. When you don't set KMP_AFFINITY, you leave scheduling to the OS. As you hinted, you can cut back to 1 thread by setting MKL_NUM_THREADS or OMP_NUM_THREADS.
0 Kudos
Gennady_F_Intel
Moderator
465 Views
That's right. MKL doesn't checkwhether the processors are busy or in any application or not.
--Gennady

0 Kudos
Reply