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

number of cores/threads MKL is using?

Kai_S_
Beginner
560 Views

Hi,

I am using MKL 10.0.5.025 under Windows XP sp3. There is one piece of code calling leve-1 BLAS and vector math functions. It suppose to utilize my Intel Q9550 CPU.

I set MKL_NUM_THREADS to 4 in system variables. Also, I call mkl_set_num_threads(4) to make sure I am using all 4 cores. But I only saw 25% CPU usage.

Did I do anything wrong? Hope someone will give me some help. Thanks in advance!

My link line is:

mkl_solver.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib libguide40.lib -Qopenmp

Kai

0 Kudos
3 Replies
TimP
Honored Contributor III
560 Views

There's a good chance you selected level 1 BLAS functions which weren't threaded in that MKL version. Release notes may indicate which additional functions were threaded in later versions.

I don't think you could have got that link line from the link advisor URL at the top of the forum, but the duplication you have doesn't appear to be a problem.

0 Kudos
Gennady_F_Intel
Moderator
560 Views

Kai,

BLAS1 routines from version 10.0.* has not been threaded, so this is one of the reasons why you saw 25% of CPU Usage only.Please refer to here to find out more info about the list of threadedroutinesinto the latest MKL.

--Gennady

0 Kudos
Kai_S_
Beginner
560 Views
Thanks! I will try the latest MKL.
0 Kudos
Reply