NeoZhangJianyu commented on issue #14087: Poor performance of the libmxnet if 
OMP_PLACES environment variable is present
URL: 
https://github.com/apache/incubator-mxnet/issues/14087#issuecomment-479381528
 
 
   @Sandeep Krishnamurthy
   "This issue is caused by 2 conflicting OMP runtimes" as mentioned by 
@stsukrov.
   
   For MXNet installed by PIP/Conda by now:
   1. 'mxnet-mkl' is without the problem
   `pip install mxnet-mkl` or `conda install mxnet-mkl`
   
    2. 'mxnet' have such issue.
   `pip install mxnet` or `conda install mxnet`
   
   For MXNet installed by source:
   1.   Set PYTHONPATH
   `$ export PYTHONPATH=/path/to/incubator-mxnet/python`
   2.   Set Library Path
   `$ export LD_LIBRARY_PATH=/path/to/incubator-mxnet/lib:$LD_LIBRARY_PATH`
   
   Above setting after compile could avoid the issue of conflicting OMP 
runtimes.
   
   In you want to use OMP_PLACES to improve the performance in this case:
   1. `export OMP_PLACES='{0:8:1}'` could help you. You need to adjust it for 
you CPU.
   2. `export OMP_PLACES=56` is not supported by GOMP. It only trigger one 
thread if works.
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to