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
17 changes: 17 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ jobs:
context: docker/x86_sm100
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm100
tag_suffix: x86-cuda130-sm100
double_precision: "ON"
- variant: x86-cuda130-sm100-sp
context: docker/x86_sm100
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm100
tag_suffix: x86-cuda130-sm100-sp
double_precision: "OFF"
- variant: x86-rocm643-gfx942
context: docker/x86_gfx942
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx942
tag_suffix: x86-rocm643-gfx942
double_precision: "ON"
- variant: x86-rocm643-gfx942-sp
context: docker/x86_gfx942
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx942
tag_suffix: x86-rocm643-gfx942-sp
double_precision: "OFF"

steps:
- name: Checkout repository
Expand Down Expand Up @@ -70,5 +86,6 @@ jobs:
build-args: |
SELFISH_IMAGE=${{ matrix.selfish_image }}
SELFISH_SHA=${{ steps.selfish.outputs.sha }}
SELF_DOUBLE_PRECISION=${{ matrix.double_precision }}
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ matrix.tag_suffix }}
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ matrix.tag_suffix }},mode=max
31 changes: 31 additions & 0 deletions docker/x86_gfx942/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ARG SELFISH_IMAGE=higherordermethods/selfish:latest-x86-rocm643-gfx942
FROM ${SELFISH_IMAGE}

ARG SELFISH_SHA=""
LABEL org.opencontainers.image.base.name="${SELFISH_IMAGE}"
LABEL org.opencontainers.image.base.digest="${SELFISH_SHA}"

# Floating-point precision of the build. ON -> double precision (default),
# OFF -> single precision. Maps to the SELF_ENABLE_DOUBLE_PRECISION CMake option.
ARG SELF_DOUBLE_PRECISION=ON

COPY . /opt/self/src

RUN source /opt/spack-environment/activate.sh && \
mkdir -p /opt/self/build && \
cd /opt/self/build && \
FC=gfortran cmake \
-DCMAKE_INSTALL_PREFIX=/opt/self/install \
-DCMAKE_BUILD_TYPE=Release \
-DSELF_ENABLE_GPU=ON \
-DSELF_GPU_BACKEND=HIP \
-DSELF_ENABLE_TESTING=ON \
-DSELF_ENABLE_DOUBLE_PRECISION=${SELF_DOUBLE_PRECISION} \
-DCMAKE_HIP_ARCHITECTURES="gfx942" \
-DGPU_TARGETS="gfx942" \
-DSELF_ENABLE_EXAMPLES=ON \
/opt/self/src && \
make -j$(nproc) && \
make install

WORKDIR /opt/self/build
5 changes: 5 additions & 0 deletions docker/x86_sm100/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ ARG SELFISH_SHA=""
LABEL org.opencontainers.image.base.name="${SELFISH_IMAGE}"
LABEL org.opencontainers.image.base.digest="${SELFISH_SHA}"

# Floating-point precision of the build. ON -> double precision (default),
# OFF -> single precision. Maps to the SELF_ENABLE_DOUBLE_PRECISION CMake option.
ARG SELF_DOUBLE_PRECISION=ON

COPY . /opt/self/src

RUN source /opt/spack-environment/activate.sh && \
Expand All @@ -16,6 +20,7 @@ RUN source /opt/spack-environment/activate.sh && \
-DSELF_ENABLE_GPU=ON \
-DSELF_GPU_BACKEND=CUDA \
-DSELF_ENABLE_TESTING=ON \
-DSELF_ENABLE_DOUBLE_PRECISION=${SELF_DOUBLE_PRECISION} \
-DCMAKE_CUDA_ARCHITECTURES="100" \
-DSELF_ENABLE_EXAMPLES=ON \
/opt/self/src && \
Expand Down
Loading