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
70 changes: 70 additions & 0 deletions .github/workflows/build_publish_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ jobs:
imagepath: ubuntu_latest
runson: ubuntu-latest

build-ubuntu_latest_llvm_18:

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

needs: [build-ubuntu_latest]
uses: ./.github/workflows/build-and-push.yml
with:
imagename: shamrock-ci
imagetag: ubuntu-latest-llvm18
imagepath: ubuntu_latest_llvm18
runson: ubuntu-latest

build-ubuntu_20:

permissions:
Expand Down Expand Up @@ -64,6 +81,25 @@ jobs:
imagepath: ubuntu22
runson: ubuntu-latest



build-ubuntu_20_llvm_15:

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

needs: [build-ubuntu_20]
uses: ./.github/workflows/build-and-push.yml
with:
imagename: shamrock-ci
imagetag: ubuntu20llvm15
imagepath: ubuntu20llvm15
runson: self-hosted

build-ubuntu_20_cuda_12:

permissions:
Expand Down Expand Up @@ -98,6 +134,23 @@ jobs:
imagepath: ubuntu20cuda11
runson: self-hosted

build-ubuntu_20_llvm_15_cuda_11:

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

needs: [build-ubuntu_20_llvm_15]
uses: ./.github/workflows/build-and-push.yml
with:
imagename: shamrock-ci
imagetag: ubuntu20llvm15cuda11
imagepath: ubuntu20llvm15cuda11
runson: self-hosted

build-ubuntu_22_cuda_12:

permissions:
Expand Down Expand Up @@ -148,7 +201,24 @@ jobs:
imagetag: ubuntu20rocm543
imagepath: ubuntu20rocm5.4.3
runson: ubuntu-latest

build-ubuntu_20_llvm_15_rocm543:

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

needs: [build-ubuntu_20_llvm_15]
uses: ./.github/workflows/build-and-push.yml
with:
imagename: shamrock-ci
imagetag: ubuntu20llvm15rocm543
imagepath: ubuntu20llvm15rocm5.4.3
runson: ubuntu-latest

build-ubuntu_22_rocm543:

permissions:
Expand Down
5 changes: 5 additions & 0 deletions images/ubuntu20llvm15/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:ubuntu20${BRANCHNAME}

COPY install_llvm.sh install_llvm.sh
RUN sh install_llvm.sh && rm install_llvm.sh
14 changes: 14 additions & 0 deletions images/ubuntu20llvm15/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/ubuntu20llvm15cuda11/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:ubuntu20llvm15${BRANCHNAME}

COPY install_cuda.sh install_cuda.sh
RUN sh install_cuda.sh && rm install_cuda.sh
7 changes: 7 additions & 0 deletions images/ubuntu20llvm15cuda11/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/ubuntu20llvm15rocm5.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:ubuntu20llvm15${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/ubuntu20llvm15rocm5.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/ubuntu_latest_llvm18/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:ubuntu-latest${BRANCHNAME}

COPY install_llvm.sh install_llvm.sh
RUN sh install_llvm.sh && rm install_llvm.sh
14 changes: 14 additions & 0 deletions images/ubuntu_latest_llvm18/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