Skip to content

Commit

Permalink
Improve Jenkins setting (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
wweic authored Mar 11, 2019
1 parent dc06e32 commit 6ff88b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tvm_multilib = "build/libtvm.so, " +
// command to start a docker container
docker_run = 'docker/bash.sh'
// timeout in minutes
max_time = 60
max_time = 120

// initialize source codes
def init_git() {
Expand Down Expand Up @@ -102,7 +102,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make('tvmai/ci-gpu', 'build', '-j2')
make('tvmai/ci-gpu', 'build', '-j4')
pack_lib('gpu', tvm_multilib)
// compiler test
sh """
Expand All @@ -116,7 +116,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER clang-6.0\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make('tvmai/ci-gpu', 'build2', '-j2')
make('tvmai/ci-gpu', 'build2', '-j4')
}
}
},
Expand All @@ -136,7 +136,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make('tvmai/ci-cpu', 'build', '-j2')
make('tvmai/ci-cpu', 'build', '-j4')
pack_lib('cpu', tvm_lib)
timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} tvmai/ci-cpu ./tests/scripts/task_cpp_unittest.sh"
Expand All @@ -163,7 +163,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make('tvmai/ci-i386', 'build', '-j2')
make('tvmai/ci-i386', 'build', '-j4')
pack_lib('i386', tvm_multilib)
}
}
Expand Down

0 comments on commit 6ff88b4

Please sign in to comment.