Skip to content

Commit

Permalink
CUDA Test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Feb 2, 2024
1 parent 4727ba2 commit 00b6574
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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++"
Expand All @@ -23,6 +25,7 @@ jobs:
sudo: ""
c-compiler: "cl.exe"
cxx-compiler: "cl.exe"
use_cuda: "ON"
- build_type: "Release" # For all platforms

steps:
Expand All @@ -35,8 +38,10 @@ jobs:
- name: Install CUDA Toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
if: matrix.os-name != 'macOS'
with:
cuda: '12.3.2'
method: 'network'

- name: Configure NiftyReg
shell: bash
Expand All @@ -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 \
Expand Down

0 comments on commit 00b6574

Please sign in to comment.