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

Does enabling hyperthreading or not have any effect on MKL performance?

Tony_Garratt
Beginner
1,469 Views


Does enabling hyperthreading or not have any effect on the performance (speed) of MKL, in particular BLAS and LAPACK routines?

0 Kudos
3 Replies
Shane_S_Intel
Employee
1,469 Views
Quoting - Tony Garratt


Does enabling hyperthreading or not have any effect on the performance (speed) of MKL, in particular BLAS and LAPACK routines?


Hi Tony, we typically recommend against enabling HT because it has a negative effect on BLAS/LAPACK performance. See the knowledge base article: http://software.intel.com/en-us/articles/setting-thread-affinity-on-smt-or-ht-enabled-systems/.
-Shane
0 Kudos
TimP
Honored Contributor III
1,469 Views

Hi Tony, we typically recommend against enabling HT because it has a negative effect on BLAS/LAPACK performance. See the knowledge base article: http://software.intel.com/en-us/articles/setting-thread-affinity-on-smt-or-ht-enabled-systems/.
-Shane
set KMP_AFFINITY= physical[,0,verbose]
and
OMP_NUM_THREADS <= number of available cores
if you require run with HT enabled and have a recent libiomp which supports this KMP option. As Shane suggests, an application such as MKL which can keep the FPU and other resources busy will not benefit from sharing the important resources among threads.
Shane, Thanks for the KB. It should be required reading for management and marketing.
0 Kudos
Tony_Garratt
Beginner
1,469 Views

Thank you!
0 Kudos
Reply