cjolivier01 commented on issue #9744: Performance regression when 
OMP_NUM_THREADS environment variable is not set
URL: 
https://github.com/apache/incubator-mxnet/issues/9744#issuecomment-367901652
 
 
   how to set this programmatically? i?d imagine that by the time this code
   executes, the omp library may have already checked the environment variable
   (as it does with OMP_NUM_THREADS)? or can it be set at any time?
   
   On Thu, Feb 22, 2018 at 4:49 PM PatricZhao <notificati...@github.com> wrote:
   
   > Thanks, @cjolivier01 <https://github.com/cjolivier01>, I mean we set this
   > environment in the code as OMP_NUM_THREADS.
   >
   > Actually, this setting is useful when hyperthreading is ON and we only
   > want to run each thread in a physical core as below picture shown
   > (KMP_AFFINITY=granularity=fine,compact,1,0).
   >
   > So, this environment will guide how to map thread into the physical core.
   > https://software.intel.com/en-us/node/522691
   >
   > [image: guid-80fda344-d8c1-4fea-b268-94f685d19c4c-imageid
   > 0abe3e2e-7a5a-4072-b22f-da7f72eb9a18]
   > 
<https://user-images.githubusercontent.com/22461308/36572333-23cebc60-1876-11e8-9fa8-11004a562ca8.jpg>
   > *KMP_AFFINITY=granularity=fine,compact,1,0*
   >
   > ?
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/incubator-mxnet/issues/9744#issuecomment-367873227>,
   > or mute the thread
   > 
<https://github.com/notifications/unsubscribe-auth/AKts_Q_3G5OsrSP6ODJmAmgu4BT8KPmbks5tXgsXgaJpZM4R-yAz>
   > .
   >
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to