Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Problems about how to use multithreaded intel MKL

$
0
0

Hello,

I have some problems about multithreaded intel MKL

1.    I use the function MKL_SET_NUM_THREADS(2) to change the thread number. Then I want to check the value of MKL_NUM_THREADS, by using function getnv (mklname, value), mklname = MKL_NUM_THREADS. The value is always 1.

I wonder if the value of MKL_NUM_THREADS will be changed when the parallelization starts.

If so, is there a way to check the value of MKL_NUM_THREADS? How do I know if the value of MKL_NUM_THREADS is really changed after I set it?

 

2.   I use the function MKL_SET_NUM_THREADS(2) to change the thread number. According to the runtime it works and the cpu efficiency is about 200%. The function I test is DGEMM. But when I test DGEQP3 or DGEQPF, the runtime is not changed and the cpu efficiency is always 100%.

I think there is something wrong but I can’t figure it out.

I want to know why.

Is there some examples for me about how to use multithreaded intel MKL?

 

Thank you !

 

OS: Linux, Red Hat 5.5

MKL: compilerpro-12.0.0.084

Ifort: composerxe-2011.0.084

Thread Topic: 

Help Me

Viewing all articles
Browse latest Browse all 3005


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>