diff --git a/Jenkinsfile b/Jenkinsfile index 6d21f496426e..6d9c60732d6b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +26,8 @@ mx_lib = 'lib/libmxnet.so, lib/libmxnet.a, 3rdparty/dmlc-core/libdmlc.a, 3rdpart mx_dist_lib = 'lib/libmxnet.so, lib/libmxnet.a, 3rdparty/dmlc-core/libdmlc.a, 3rdparty/tvm/nnvm/lib/libnnvm.a, 3rdparty/ps-lite/build/libps.a, deps/lib/libprotobuf-lite.a, deps/lib/libzmq.a' // mxnet cmake libraries, in cmake builds we do not produce a libnvvm static library by default. mx_cmake_lib = 'build/libmxnet.so, build/libmxnet.a, build/3rdparty/dmlc-core/libdmlc.a, build/tests/mxnet_unit_tests, build/3rdparty/openmp/runtime/src/libomp.so' +// mxnet cmake libraries, in cmake builds we do not produce a libnvvm static library by default. +mx_cmake_lib_debug = 'build/libmxnet.so, build/libmxnet.a, build/3rdparty/dmlc-core/libdmlc.a, build/tests/mxnet_unit_tests' mx_cmake_mkldnn_lib = 'build/libmxnet.so, build/libmxnet.a, build/3rdparty/dmlc-core/libdmlc.a, build/tests/mxnet_unit_tests, build/3rdparty/openmp/runtime/src/libomp.so, build/3rdparty/mkldnn/src/libmkldnn.so.0' mx_mkldnn_lib = 'lib/libmxnet.so, lib/libmxnet.a, lib/libiomp5.so, lib/libmkldnn.so.0, lib/libmklml_intel.so, 3rdparty/dmlc-core/libdmlc.a, 3rdparty/tvm/nnvm/lib/libnnvm.a' // timeout in minutes @@ -233,6 +235,17 @@ try { } } }, + 'CPU: Openblas, debug': { + node('mxnetlinux-cpu') { + ws('workspace/build-cpu-openblas') { + timeout(time: max_time, unit: 'MINUTES') { + init_git() + docker_run('ubuntu_cpu', 'build_ubuntu_cpu_cmake_debug', false) + pack_lib('cpu_debug', mx_cmake_lib_debug) + } + } + } + }, 'CPU: Clang 3.9': { node('mxnetlinux-cpu') { ws('workspace/build-cpu-clang39') { @@ -574,6 +587,20 @@ try { } } }, + 'Python3: CPU debug': { + node('mxnetlinux-cpu') { + ws('workspace/ut-python3-cpu-debug') { + try { + init_git() + unpack_lib('cpu_debug', mx_cmake_lib_debug) + python3_ut('ubuntu_cpu') + } finally { + collect_test_results_unix('nosetests_unittest.xml', 'nosetests_python3_cpu_debug_unittest.xml') + collect_test_results_unix('nosetests_quantization.xml', 'nosetests_python3_cpu_debug_quantization.xml') + } + } + } + }, 'Python2: GPU': { node('mxnetlinux-gpu') { ws('workspace/ut-python2-gpu') { diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh index 52a2650a1cc4..371d2cf63af1 100755 --- a/ci/docker/runtime_functions.sh +++ b/ci/docker/runtime_functions.sh @@ -345,6 +345,25 @@ build_ubuntu_cpu_openblas() { report_ccache_usage } +build_ubuntu_cpu_cmake_debug() { + set -ex + pushd . + cd /work/build + cmake \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DCMAKE_C_COMPILER_LAUNCHER=ccache \ + -DUSE_CUDA=OFF \ + -DUSE_MKL_IF_AVAILABLE=OFF \ + -DUSE_OPENMP=OFF \ + -DUSE_OPENCV=ON \ + -DCMAKE_BUILD_TYPE=Debug \ + -G Ninja \ + /work/mxnet + + ninja -v + popd +} + build_ubuntu_cpu_clang39() { set -ex