xianyujie edited a comment on issue #15348: Is it possible to add environment 
variables directly to compilation options when compiling Mxnet?
URL: 
https://github.com/apache/incubator-mxnet/issues/15348#issuecomment-505687785
 
 
   @vdantu I want to take part in the FRVT competition. They ask that mxnet 
runs in single-thread mode.
   ```
   Implementations must run in single-threaded mode, because NIST will 
parallelize the test 
   by dividing the workload across many cores and many machines. 
Implementations must ensure 
   that there are no issues with their software being parallelized via the 
fork() function. 
   Developers should take caution with checking threading when using 
third-party frameworks 
   (e.g., TensorFlow, MXNet, etc.).
   ```
   By setting the following steps, the mxnet could run in single-thread mode.
   ```
   compile mxnet with OPENMP=0 
   export OMP_NUM_THREADS=1
   export MXNET_ENGINE_TYPE=NaiveEngine
   ```
   How to make the value of MXNET_ENGINE_TYPE equal to NaiveEngine from the 
source code instead of using 'export'? I think it should be a switch_case or 
if_else statement to determine the value of type. Where is this code in the 
source code?

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