Skip to content

Commit

Permalink
Comment out dmlc::SetEnv in pthread_atfork apache#13438
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Larroy committed Dec 4, 2018
1 parent f2dcd7c commit 33fc658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/initialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ class LibraryInitializer {
Engine::Get()->Start();
},
[]() {
// #13438
// Make children single threaded since they are typically workers
dmlc::SetEnv("MXNET_CPU_WORKER_NTHREADS", 1);
dmlc::SetEnv("OMP_NUM_THREADS", 1);
// dmlc::SetEnv("MXNET_CPU_WORKER_NTHREADS", 1);
// dmlc::SetEnv("OMP_NUM_THREADS", 1);
#if MXNET_USE_OPENCV && !__APPLE__
cv::setNumThreads(0); // disable opencv threading
#endif // MXNET_USE_OPENCV
Expand Down

0 comments on commit 33fc658

Please sign in to comment.