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
10 changes: 10 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ jobs:
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm103
tag_suffix: x86-cuda130-sm103-sp
double_precision: "OFF"
- variant: x86-rocm643-gfx90a
context: docker/x86_gfx90a
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx90a
tag_suffix: x86-rocm643-gfx90a
double_precision: "ON"
- variant: x86-rocm643-gfx90a-sp
context: docker/x86_gfx90a
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx90a
tag_suffix: x86-rocm643-gfx90a-sp
double_precision: "OFF"
- variant: x86-rocm643-gfx942
context: docker/x86_gfx942
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx942
Expand Down
5 changes: 5 additions & 0 deletions docker/x86_gfx90a/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=HIP \
-DSELF_ENABLE_TESTING=ON \
-DSELF_ENABLE_DOUBLE_PRECISION=${SELF_DOUBLE_PRECISION} \
-DCMAKE_HIP_ARCHITECTURES="gfx90a" \
-DGPU_TARGETS="gfx90a" \
-DSELF_ENABLE_EXAMPLES=ON \
Expand Down
Loading