diff --git a/Jenkinsfile b/Jenkinsfile
index af059c58e83..c915e8ec7b5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -228,12 +228,12 @@ core_logic: {
}
}
},
- 'CPU: Clang Tidy': {
+ 'GPU: Clang Tidy': {
node(NODE_LINUX_CPU) {
- ws('workspace/build-cpu-clang60_tidy') {
+ ws('workspace/build-gpu-clang60_tidy') {
timeout(time: max_time, unit: 'MINUTES') {
utils.init_git()
- utils.docker_run('ubuntu_cpu', 'build_ubuntu_cpu_clang_tidy',
false)
+ utils.docker_run('ubuntu_build_cuda',
'build_ubuntu_gpu_clang_tidy', false)
}
}
}
diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 43006f23974..26178ca13c2 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -405,24 +405,29 @@ build_ubuntu_cpu_clang60() {
-j$(nproc)
}
-build_ubuntu_cpu_clang_tidy() {
+build_ubuntu_gpu_clang_tidy() {
set -ex
- export CXX=clang++-6.0
- export CC=clang-6.0
+ export CC="gcc"
+ export CXX="g++"
export CLANG_TIDY=/usr/lib/llvm-6.0/share/clang/run-clang-tidy.py
pushd .
cd /work/build
cmake \
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
- -DUSE_CUDA=OFF \
- -DUSE_MKL_IF_AVAILABLE=OFF \
- -DUSE_OPENCV=ON \
- -DCMAKE_BUILD_TYPE=Debug \
- -G Ninja \
- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \
+ -DUSE_CUDA=ON \
+ -DUSE_CUDNN=ON \
+ -DCUDA_HOST_COMPILER=/usr/bin/gcc \
+ -DCUDA_ARCH_NAME=Manual \
+ -DCUDA_ARCH_BIN=$CI_CMAKE_CUDA_ARCH_BIN \
+ -DUSE_OPENMP=OFF \
+ -DUSE_MKL_IF_AVAILABLE=OFF \
+ -DUSE_OPENCV=ON \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -G Ninja \
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
/work/mxnet
ninja -v
With regards,
Apache Git Services