Skip to content

Commit

Permalink
[MXNET-855] Update clang to version 6 (apache#12305)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellenSunderland authored and anirudh2290 committed Sep 19, 2018
1 parent a23692b commit d354a16
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ core_logic: {
}
}
},
'CPU: Clang 5': {
'CPU: Clang 6': {
node(NODE_LINUX_CPU) {
ws('workspace/build-cpu-clang50') {
ws('workspace/build-cpu-clang60') {
timeout(time: max_time, unit: 'MINUTES') {
utils.init_git()
utils.docker_run('ubuntu_cpu', 'build_ubuntu_cpu_clang50', false)
utils.docker_run('ubuntu_cpu', 'build_ubuntu_cpu_clang60', false)
}
}
}
Expand All @@ -194,13 +194,13 @@ core_logic: {
}
}
},
'CPU: Clang 5 MKLDNN': {
'CPU: Clang 6 MKLDNN': {
node(NODE_LINUX_CPU) {
ws('workspace/build-cpu-mkldnn-clang50') {
ws('workspace/build-cpu-mkldnn-clang60') {
timeout(time: max_time, unit: 'MINUTES') {
utils.init_git()
utils.docker_run('ubuntu_cpu', 'build_ubuntu_cpu_clang50_mkldnn', false)
utils.pack_lib('mkldnn_cpu_clang5', mx_mkldnn_lib)
utils.docker_run('ubuntu_cpu', 'build_ubuntu_cpu_clang60_mkldnn', false)
utils.pack_lib('mkldnn_cpu_clang6', mx_mkldnn_lib)
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions ci/docker/install/ubuntu_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
# the whole docker cache for the image

set -ex
# Install clang 3.9 (the same version as in XCode 8.*) and 5.0 (latest major release)
# Install clang 3.9 (the same version as in XCode 8.*) and 6.0 (latest major release)
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" && \
apt-get update && \
apt-get install -y clang-3.9 clang-5.0 && \
apt-get install -y clang-3.9 clang-6.0 && \
clang-3.9 --version && \
clang-5.0 --version
clang-6.0 --version
12 changes: 6 additions & 6 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,11 @@ build_ubuntu_cpu_clang39() {
-j$(nproc)
}

build_ubuntu_cpu_clang50() {
build_ubuntu_cpu_clang60() {
set -ex

export CXX=clang++-5.0
export CC=clang-5.0
export CXX=clang++-6.0
export CC=clang-6.0

build_ccache_wrappers

Expand Down Expand Up @@ -381,11 +381,11 @@ build_ubuntu_cpu_clang39_mkldnn() {
-j$(nproc)
}

build_ubuntu_cpu_clang50_mkldnn() {
build_ubuntu_cpu_clang60_mkldnn() {
set -ex

export CXX=clang++-5.0
export CC=clang-5.0
export CXX=clang++-6.0
export CC=clang-6.0

build_ccache_wrappers

Expand Down

0 comments on commit d354a16

Please sign in to comment.