pengzhao-intel edited a comment on issue #12239: Scale to many CPU cores
URL: 
https://github.com/apache/incubator-mxnet/issues/12239#issuecomment-414519602
 
 
   @qw42 , you can use master branch or release version >= 1.2.0.
   
   A simple experiment by following commands. 
   
   ```
   export OMP_NUM_THREADS=${CORES_NUM}
   mem_num=0
   COMMAND="numactl -C 0-$[${CORES_NUM}-1] -m ${mem_num} python XXX.py"
   for ((i=1;i<${INSTANCES};i++))
           do
                 if [ $[${CORES_NUM}*$i] -ge 28 ];then
                  mem_num=1
                  fi
                 COMMAND+=" & numactl -C 
$[${CORES_NUM}*$i]-$[${CORES_NUM}*$i+${CORES_NUM}-1] -m ${mem_num} python 
XXX.py"
           done
   echo ${COMMAND} > run_instance.sh
   bash -x run_instance.sh
   ```

----------------------------------------------------------------
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