From 3d6646a4984839a5f37f8fa4f2a66880a303f1a5 Mon Sep 17 00:00:00 2001 From: Pedro Larroy Date: Sat, 18 May 2019 00:44:35 -0700 Subject: [PATCH] Silence excessive mkldnn logging output on tests. (#14947) * Silence excessive mkldnn logging output on tests. http://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/unix-cpu/branches/PR-14940/runs/1/nodes/283/steps/749/log/?start=0 * As per Peng Zhao and Tao Lv suggestion --- ci/docker/runtime_functions.sh | 14 +++++++------- src/operator/nn/mkldnn/mkldnn_base.cc | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh index 091ffdf2551d..e1da222ca298 100755 --- a/ci/docker/runtime_functions.sh +++ b/ci/docker/runtime_functions.sh @@ -820,7 +820,7 @@ sanity_check() { unittest_ubuntu_python2_cpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 + export MXNET_MKLDNN_DEBUG=0 export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 nosetests-2.7 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_unittest.xml --verbose tests/python/unittest nosetests-2.7 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_train.xml --verbose tests/python/train @@ -830,7 +830,7 @@ unittest_ubuntu_python2_cpu() { unittest_ubuntu_python3_cpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_unittest.xml --verbose tests/python/unittest nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_quantization.xml --verbose tests/python/quantization @@ -839,7 +839,7 @@ unittest_ubuntu_python3_cpu() { unittest_ubuntu_python3_cpu_mkldnn() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_unittest.xml --verbose tests/python/unittest nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_mkl.xml --verbose tests/python/mkl @@ -848,7 +848,7 @@ unittest_ubuntu_python3_cpu_mkldnn() { unittest_ubuntu_python2_gpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 export CUDNN_VERSION=${CUDNN_VERSION:-7.0.3} nosetests-2.7 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_gpu.xml --verbose tests/python/gpu @@ -857,7 +857,7 @@ unittest_ubuntu_python2_gpu() { unittest_ubuntu_python3_gpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 export CUDNN_VERSION=${CUDNN_VERSION:-7.0.3} nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_gpu.xml --verbose tests/python/gpu @@ -886,7 +886,7 @@ unittest_ubuntu_tensorrt_gpu() { unittest_ubuntu_python2_quantization_gpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 export CUDNN_VERSION=${CUDNN_VERSION:-7.0.3} nosetests-2.7 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_quantization_gpu.xml --verbose tests/python/quantization_gpu @@ -897,7 +897,7 @@ unittest_ubuntu_python2_quantization_gpu() { unittest_ubuntu_python3_quantization_gpu() { set -ex export PYTHONPATH=./python/ - export MXNET_MKLDNN_DEBUG=1 # Ignored if not present + export MXNET_MKLDNN_DEBUG=0 # Ignored if not present export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0 export CUDNN_VERSION=${CUDNN_VERSION:-7.0.3} nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_quantization_gpu.xml --verbose tests/python/quantization_gpu diff --git a/src/operator/nn/mkldnn/mkldnn_base.cc b/src/operator/nn/mkldnn/mkldnn_base.cc index 5dccba281fd0..e36a0f008821 100644 --- a/src/operator/nn/mkldnn/mkldnn_base.cc +++ b/src/operator/nn/mkldnn/mkldnn_base.cc @@ -553,8 +553,8 @@ void OpCheck::Run(mxnet::FCompute fn, const nnvm::NodeAttrs &attrs, for (size_t i = 0; i < out_blobs.size(); i++) out_blobs[i] = outputs[i].data(); fn(attrs, ctx, in_blobs, req, out_blobs); - - LOG(INFO) << "test " << attrs.op->name; + if (dmlc::GetEnv("MXNET_MKLDNN_DEBUG", false)) + LOG(INFO) << "test " << attrs.op->name; size_t num = std::min(outputs.size(), outputs_.size()); num = std::min(num_checks, num); for (size_t i = 0; i < num; i++) {