Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add CPU test coverage and refine cmake builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Larroy committed Dec 11, 2018
1 parent 46a2990 commit 0878a7b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
7 changes: 6 additions & 1 deletion ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ build_ubuntu_cpu_cmake_debug() {
-DUSE_MKL_IF_AVAILABLE=OFF \
-DUSE_OPENMP=OFF \
-DUSE_OPENCV=ON \
-DUSE_SIGNAL_HANDLER=ON \
-DCMAKE_BUILD_TYPE=Debug \
-G Ninja \
/work/mxnet
Expand Down Expand Up @@ -617,6 +618,8 @@ build_ubuntu_gpu_cmake_mkldnn() {
cmake \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
-DUSE_SIGNAL_HANDLER=ON \
-DENABLE_TESTCOVERAGE=ON \
-DUSE_CUDA=1 \
-DUSE_CUDNN=1 \
Expand All @@ -640,6 +643,8 @@ build_ubuntu_gpu_cmake() {
cmake \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
-DUSE_SIGNAL_HANDLER=ON \
-DENABLE_TESTCOVERAGE=ON \
-DUSE_CUDA=1 \
-DUSE_CUDNN=1 \
Expand Down Expand Up @@ -781,7 +786,7 @@ unittest_ubuntu_cpugpu_perl() {
./perl-package/test.sh
}

unittest_ubuntu_gpu_cpp() {
unittest_cpp() {
set -ex
build/tests/mxnet_unit_tests
}
Expand Down
18 changes: 16 additions & 2 deletions ci/jenkins/Jenkins_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def test_unix_cpp_gpu() {
ws('workspace/ut-cpp-gpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cmake_gpu', mx_cmake_lib, true)
utils.docker_run('ubuntu_gpu', 'unittest_ubuntu_gpu_cpp', true)
utils.docker_run('ubuntu_gpu', 'unittest_cpp', true)
utils.publish_test_coverage()
}
}
Expand All @@ -834,7 +834,21 @@ def test_unix_cpp_mkldnn_gpu() {
ws('workspace/ut-cpp-mkldnn-gpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cmake_mkldnn_gpu', mx_cmake_mkldnn_lib, true)
utils.docker_run('ubuntu_gpu', 'unittest_ubuntu_gpu_cpp', true)
utils.docker_run('ubuntu_gpu', 'unittest_cpp', true)
utils.publish_test_coverage()
}
}
}
}]
}

def test_unix_cpp_cpu() {
return ['Cpp: CPU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-cpp-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('ubuntu_cpu', mx_cmake_lib_debug, true)
utils.docker_run('ubuntu_gpu', 'unittest_cpp', true)
utils.publish_test_coverage()
}
}
Expand Down
6 changes: 1 addition & 5 deletions ci/jenkins/Jenkinsfile_unix_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,8 @@ core_logic: {
custom_steps.test_unix_r_cpu(),
custom_steps.test_unix_julia_cpu(),
custom_steps.test_unix_onnx_cpu(),

/* Disabled due to master build failure:
* http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/master/1221/pipeline/
* https://github.com/apache/incubator-mxnet/issues/11801
custom_steps.test_unix_cpp_cpu(),
custom_steps.test_unix_distributed_kvstore_cpu()
*/
])
}
,
Expand Down

0 comments on commit 0878a7b

Please sign in to comment.