Software Archive
Read-only legacy content
17061 Discussions

automatic offload cpu usage

Zoltan_P_
Beginner
385 Views

Dear all,

I found AO DGEMM use only one CPU core for "CPU fraction", although OMP_NUM_THREADS=4, and MKL_NUM_THREADS=4When I set MKL_MIC_MAX_MEMORY=1024, AO don't use MIC, only one CPU core, although MKL_MIC_WORKDIVISION=1.0. (Matrix dimension: 6232)

 

(composer_xe_2013_sp1.2.144)

 

0 Kudos
2 Replies
Zhang_Z_
Beginner
385 Views

MKL runtime scales down the number of cores to use when it believes using more cores or threads won't help performance. To disable this feature and force it to always respect MKL_NUM_THREADS or OMP_NUM_THREADS, you can set MKL_DYNAMIC=0.

MKL_MIC_MAX_MEMORY=1024 means 1024K bytes of memory reserved on MIC for automatic offload. This value is too small. Try set it to 1024M, or 1G.

0 Kudos
Zoltan_P_
Beginner
385 Views

Thank you! That's working.

0 Kudos
Reply