Skip to content

Commit

Permalink
Update Clang+Cuda CI from 10.1 to 11.0.3 (kokkos#6318)
Browse files Browse the repository at this point in the history
* Update Clang+Cuda CI from 10.1 to 11.0.3

* Run in non-interactive mode

* Try newer llvm version

* Update llvm version to LLVM 12.0 + Kokkos clang-tidy

* Ignore unknown-cuda-version warnings
  • Loading branch information
masterleinad committed Jul 31, 2023
1 parent b57fb73 commit d89140d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pipeline {
}
}
}
stage('CUDA-10.1-Clang-Tidy') {
stage('CUDA-11.0.3-Clang-Tidy') {
agent {
dockerfile {
filename 'Dockerfile.kokkosllvmproject'
Expand All @@ -305,7 +305,7 @@ pipeline {
-DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*" \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_FLAGS=-Werror \
-DCMAKE_CXX_FLAGS="-Werror -Wno-unknown-cuda-version" \
-DCMAKE_CXX_STANDARD=17 \
-DKokkos_ARCH_NATIVE=ON \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
Expand Down
10 changes: 5 additions & 5 deletions scripts/docker/Dockerfile.kokkosllvmproject
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nvidia/cuda:10.1-devel
FROM nvidia/cuda:11.0.3-devel

RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub

RUN apt-get update && apt-get install -y \
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
bc \
git \
wget \
Expand All @@ -15,10 +15,10 @@ RUN apt-get update && apt-get install -y \

# unbuntu18.04-based images have libstdc++ that is lacking filesystem support
RUN apt-get update && \
apt-get install -y software-properties-common && \
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install -y g++-9 && \
DEBIAN_FRONTEND=noninteractive apt-get install -y g++-9 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -49,7 +49,7 @@ ARG NPROC=8

# Clone Kokkos fork of the LLVM Project and build Clang
ENV LLVM_DIR=/opt/llvm
RUN LLVM_VERSION=55b3bcf643685c63fcc529d434bed112fdf03939 && \
RUN LLVM_VERSION=32413084ecbb5e739c6b35d8bf13ad972985acb3 && \
LLVM_URL=https://github.com/kokkos/llvm-project/archive/${LLVM_VERSION}.tar.gz &&\
LLVM_ARCHIVE=llvm.tar.xz && \
SCRATCH_DIR=/scratch && mkdir -p ${SCRATCH_DIR} && cd ${SCRATCH_DIR} && \
Expand Down

0 comments on commit d89140d

Please sign in to comment.