You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/06/19 09:01:14 UTC

[GitHub] [incubator-mxnet] xianyujie removed a comment on issue #15275: How to run mxnet(C++) in single-thread mode?

xianyujie removed a comment on issue #15275: How to run mxnet(C++) in single-thread mode?
URL: https://github.com/apache/incubator-mxnet/issues/15275#issuecomment-503444586
 
 
   @pengzhao-intel  Here are my test results.
   - From 1 and 2, By recompiling mxnet with ```OPENMP=0```, the number of threads reduced from 33 to 11.
   - From 3 and 4, Adding ```export KMP_AFFINITY=granularity=fine,noduplicates,compact,1,0
   export OMP_NUM_THREADS=1```, and there was no significant change in the results.
   - From 5 and 6, Adding ```export MXNET_ENGINE_TYPE=NaiveEngine```, the result changed significant and the result of 6 is what I need. But throughout the testing process, the number of processes will suddenly increase at the beginning and end of the test .
   1. Compile mxnet with ```OPENMP=1``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   33
   ```
   2. Compile mxnet with ```OPENMP=0``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   11
   ```
   3. ```export KMP_AFFINITY=granularity=fine,noduplicates,compact,1,0```
   ```export OMP_NUM_THREADS=1```
   Compile mxnet with ```OPENMP=1``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   22
   ```
   4. ```export KMP_AFFINITY=granularity=fine,noduplicates,compact,1,0```
   ```export OMP_NUM_THREADS=1```
   Compile mxnet with ```OPENMP=0``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   11
   ```
   5. ```export MXNET_ENGINE_TYPE=NaiveEngine```
   Compile mxnet with ```OPENMP=1``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   13
   ```
   6. ```export MXNET_ENGINE_TYPE=NaiveEngine```
   Compile mxnet with ```OPENMP=0``` and ```USE_CPP_PACKAGE = 1```
   ```
   ubuntu@ubuntu-MW50-SV0:~/xxj$ top -H -b -n1 | grep validat | wc -l
   2
   ```
   
   

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


With regards,
Apache Git Services