From 00b6574b251b088dc8005fdd3bf48fdaa57b7db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= <onur.ulgen@kcl.ac.uk> Date: Fri, 2 Feb 2024 12:58:39 +0000 Subject: [PATCH] CUDA Test 2 --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b759a22c..011443fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,10 @@ jobs: include: - os: ubuntu-20.04 # For Ubuntu only os-name: "Ubuntu" + use_cuda: "ON" - os: macos-latest # For macOS only os-name: "macOS" + use_cuda: "OFF" - sudo: "sudo" # For Ubuntu and macOS c-compiler: "gcc" cxx-compiler: "g++" @@ -23,6 +25,7 @@ jobs: sudo: "" c-compiler: "cl.exe" cxx-compiler: "cl.exe" + use_cuda: "ON" - build_type: "Release" # For all platforms steps: @@ -35,8 +38,10 @@ jobs: - name: Install CUDA Toolkit uses: Jimver/cuda-toolkit@v0.2.14 id: cuda-toolkit + if: matrix.os-name != 'macOS' with: cuda: '12.3.2' + method: 'network' - name: Configure NiftyReg shell: bash @@ -47,7 +52,7 @@ jobs: -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ -DBUILD_ALL_DEP=ON \ - -DUSE_CUDA=ON \ + -DUSE_CUDA=${{ matrix.use_cuda }} \ -DUSE_OPENCL=OFF \ -DUSE_SSE=ON \ -DUSE_OPENMP=ON \