ZhennanQin edited a comment on issue #13593: Low CPU usage of MXNet in 
subprocesses
URL: 
https://github.com/apache/incubator-mxnet/issues/13593#issuecomment-452204685
 
 
   @YutingZhang If you just want to utilize 100% cpu for each process, please 
try `export KMP_AFFINITY=granularity=fine,noduplicates`, it works on my 
environment. 
   
   If you want enable openmp multi-threading to utilize >100% cpu for each 
process, you need to make below change for MXNet:
   
https://github.com/ZhennanQin/incubator-mxnet/commit/48fe761f0268c316477fac23d005d26b29c65a47
   
   Then you can use `export OMP_NUM_THREADS=4` to specify 4x cpu usage for each 
process.
   
   If you don't want to change MXNet and just want to increase the efficiency 
of MKL dot, you can try `export MKL_NUM_THREADS=4`. It only works for MKL 
library.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to