bgawrych commented on a change in pull request #18443:
URL: https://github.com/apache/incubator-mxnet/pull/18443#discussion_r433111942



##########
File path: ci/docker/runtime_functions.sh
##########
@@ -1014,8 +1001,10 @@ unittest_ubuntu_python3_cpu_mkldnn() {
     export MXNET_SUBGRAPH_VERBOSE=0
     export MXNET_ENABLE_CYTHON=0
     export DMLC_LOG_STACK_TRACE_DEPTH=10
-    # TODO(szha): enable parallel testing and naive engine for ops once #18244 
is fixed
-    pytest --durations=50 --cov-report xml:tests_unittest.xml --verbose 
tests/python/unittest
+    pytest -m 'not serial' -k 'not test_operator' -n 4 --durations=50 
--cov-report xml:tests_unittest.xml --verbose tests/python/unittest

Review comment:
       It would be better to set OMP_NUM_THREADS=total_cpu_threads/4. Otherwise 
multiprocessing module from python will spawn 4 processes which will be using 
all threads independently (4 x total_cpu_threads).
   For serial you can then unset OMP_NUM_THREADS




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


Reply via email to