File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG BRANCHNAME
2+ FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22${BRANCHNAME}
3+
4+ COPY install_llvm.sh install_llvm.sh
5+ RUN sh install_llvm.sh && rm install_llvm.sh
Original file line number Diff line number Diff line change 1+ set -eu
2+
3+ LLVM_VERSION=15
4+
5+ wget https://apt.llvm.org/llvm.sh
6+ chmod +x llvm.sh
7+ sudo ./llvm.sh $LLVM_VERSION
8+ sudo apt install -y libclang-${LLVM_VERSION} -dev clang-tools-${LLVM_VERSION} libomp-${LLVM_VERSION} -dev
9+
10+ # special case for LLVM 16
11+ if [[ " ${LLVM_VERSION} " == " 16" ]]; then
12+ sudo rm -r /usr/lib/clang/16*
13+ sudo ln -s /usr/lib/llvm-16/lib/clang/16 /usr/lib/clang/16
14+ fi
Original file line number Diff line number Diff line change 1+ ARG BRANCHNAME
2+ FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22llvm15${BRANCHNAME}
3+
4+ COPY install_cuda.sh install_cuda.sh
5+ RUN sh install_cuda.sh && rm install_cuda.sh
Original file line number Diff line number Diff line change 1+ set -eu
2+
3+ mkdir -p /opt/cuda
4+ wget --progress=bar:force -O cuda.sh http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
5+ sudo sh ./cuda.sh --override --silent --toolkit --no-man-page --no-drm --no-opengl-libs --installpath=/opt/cuda || true
6+ echo " CUDA Version 11.0.2" | sudo tee /opt/cuda/version.txt
7+ rm cuda.sh
Original file line number Diff line number Diff line change 1+ ARG BRANCHNAME
2+ FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22llvm15${BRANCHNAME}
3+
4+ COPY install_rocm.sh /opt/src/scripts/install_rocm.sh
5+ RUN sh /opt/src/scripts/install_rocm.sh
Original file line number Diff line number Diff line change 1+ set -eu
2+
3+ sudo apt install -y libnuma-dev cmake unzip
4+ wget --progress=bar:force -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
5+ echo " deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.4.3 focal main" | sudo tee /etc/apt/sources.list.d/rocm.list
6+ printf ' Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
7+ sudo apt update -y
8+ sudo apt install -y rocm-dev
Original file line number Diff line number Diff line change 1+ ARG BRANCHNAME
2+ FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22${BRANCHNAME}
3+
4+ COPY install_llvm.sh install_llvm.sh
5+ RUN sh install_llvm.sh && rm install_llvm.sh
Original file line number Diff line number Diff line change 1+ set -eu
2+
3+ LLVM_VERSION=18
4+
5+ wget https://apt.llvm.org/llvm.sh
6+ chmod +x llvm.sh
7+ sudo ./llvm.sh $LLVM_VERSION
8+ sudo apt install -y libclang-${LLVM_VERSION} -dev clang-tools-${LLVM_VERSION} libomp-${LLVM_VERSION} -dev
9+
10+ # special case for LLVM 16
11+ if [[ " ${LLVM_VERSION} " == " 16" ]]; then
12+ sudo rm -r /usr/lib/clang/16*
13+ sudo ln -s /usr/lib/llvm-16/lib/clang/16 /usr/lib/clang/16
14+ fi
You can’t perform that action at this time.
0 commit comments