Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions images/ubuntu22llvm15/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BRANCHNAME
FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22${BRANCHNAME}

COPY install_llvm.sh install_llvm.sh
RUN sh install_llvm.sh && rm install_llvm.sh
14 changes: 14 additions & 0 deletions images/ubuntu22llvm15/install_llvm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
set -eu

LLVM_VERSION=15

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh $LLVM_VERSION
sudo apt install -y libclang-${LLVM_VERSION}-dev clang-tools-${LLVM_VERSION} libomp-${LLVM_VERSION}-dev

# special case for LLVM 16
if [[ "${LLVM_VERSION}" == "16" ]]; then
sudo rm -r /usr/lib/clang/16*
sudo ln -s /usr/lib/llvm-16/lib/clang/16 /usr/lib/clang/16
fi
5 changes: 5 additions & 0 deletions images/ubuntu22llvm15cuda11/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BRANCHNAME
FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22llvm15${BRANCHNAME}

COPY install_cuda.sh install_cuda.sh
RUN sh install_cuda.sh && rm install_cuda.sh
7 changes: 7 additions & 0 deletions images/ubuntu22llvm15cuda11/install_cuda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -eu

mkdir -p /opt/cuda
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
sudo sh ./cuda.sh --override --silent --toolkit --no-man-page --no-drm --no-opengl-libs --installpath=/opt/cuda || true
echo "CUDA Version 11.0.2" | sudo tee /opt/cuda/version.txt
rm cuda.sh
5 changes: 5 additions & 0 deletions images/ubuntu22llvm15rocm5.4.3/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BRANCHNAME
FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22llvm15${BRANCHNAME}

COPY install_rocm.sh /opt/src/scripts/install_rocm.sh
RUN sh /opt/src/scripts/install_rocm.sh
8 changes: 8 additions & 0 deletions images/ubuntu22llvm15rocm5.4.3/install_rocm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set -eu

sudo apt install -y libnuma-dev cmake unzip
wget --progress=bar:force -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.4.3 focal main" | sudo tee /etc/apt/sources.list.d/rocm.list
printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
sudo apt update -y
sudo apt install -y rocm-dev
5 changes: 5 additions & 0 deletions images/ubuntu22llvm18/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BRANCHNAME
FROM ghcr.io/shamrock-code/shamrock-ci:ubuntu22${BRANCHNAME}

COPY install_llvm.sh install_llvm.sh
RUN sh install_llvm.sh && rm install_llvm.sh
14 changes: 14 additions & 0 deletions images/ubuntu22llvm18/install_llvm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
set -eu

LLVM_VERSION=18

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh $LLVM_VERSION
sudo apt install -y libclang-${LLVM_VERSION}-dev clang-tools-${LLVM_VERSION} libomp-${LLVM_VERSION}-dev

# special case for LLVM 16
if [[ "${LLVM_VERSION}" == "16" ]]; then
sudo rm -r /usr/lib/clang/16*
sudo ln -s /usr/lib/llvm-16/lib/clang/16 /usr/lib/clang/16
fi