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 @@ -36,6 +36,16 @@ jobs:
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm100
tag_suffix: x86-cuda130-sm100-sp
double_precision: "OFF"
- variant: x86-cuda130-sm103
context: docker/x86_sm103
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm103
tag_suffix: x86-cuda130-sm103
double_precision: "ON"
- variant: x86-cuda130-sm103-sp
context: docker/x86_sm103
selfish_image: higherordermethods/selfish:latest-x86-cuda130-sm103
tag_suffix: x86-cuda130-sm103-sp
double_precision: "OFF"
- variant: x86-rocm643-gfx942
context: docker/x86_gfx942
selfish_image: higherordermethods/selfish:latest-x86-rocm643-gfx942
Expand Down
30 changes: 30 additions & 0 deletions docker/x86_sm103/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ARG SELFISH_IMAGE=higherordermethods/selfish:latest-x86-cuda130-sm103
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=CUDA \
-DSELF_ENABLE_TESTING=ON \
-DSELF_ENABLE_DOUBLE_PRECISION=${SELF_DOUBLE_PRECISION} \
-DCMAKE_CUDA_ARCHITECTURES="103" \
-DSELF_ENABLE_EXAMPLES=ON \
/opt/self/src && \
make -j$(nproc) && \
make install

WORKDIR /opt/self/build
Loading