Skip to content

Commit d175ea0

Browse files
authored
add missing ubuntu22 images (#8)
1 parent 3bcce91 commit d175ea0

8 files changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)