From 5ba06822c23902d92d9c9af0fd6643a288a2a881 Mon Sep 17 00:00:00 2001 From: David Beckingsale Date: Tue, 27 Aug 2024 11:14:13 -0700 Subject: [PATCH] Add GitHub action build with CUDA 12 --- .github/workflows/build.yml | 2 +- Dockerfile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8aabaf94c1..6c7bfd54aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ jobs: build_docker: strategy: matrix: - target: [gcc12, gcc13, clang13, clang15, rocm5.6, rocm5.6_desul, intel2024, intel2024_debug, intel2024_sycl] + target: [gcc12, gcc13, clang13, clang15, rocm5.6, rocm5.6_desul, intel2024, intel2024_debug, intel2024_sycl, cuda12] runs-on: ubuntu-latest steps: - run: | diff --git a/Dockerfile b/Dockerfile index 4e224371eb..3653306a46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,6 +111,13 @@ RUN /bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ ## Need to find a viable cuda image to test... ## +FROM ghcr.io/llnl/radiuss:ubuntu-22.04-cuda-12-3 AS cuda12 +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_CUDA_ARCHITECTURES=70 .. && \ + make -j 16 + # TODO: We should switch to ROCm 6 -- where to get an image?? FROM ghcr.io/llnl/radiuss:ubuntu-20.04-hip-5.6.1 AS rocm5.6 ENV GTEST_COLOR=1