Skip to content

128 reg resample cuda enabling #75

128 reg resample cuda enabling

128 reg resample cuda enabling #75

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- sudo: "sudo"
c-compiler: "gcc"
cxx-compiler: "g++"
cmake-extra: ""
build-all-dep: "ON"
build-type: "Debug"
use-sse: "ON"
- os: macos-latest
build-all-dep: "OFF"
use-sse: "OFF"
- os: windows-latest
sudo: ""
c-compiler: "clang-cl"
cxx-compiler: "clang-cl"
cmake-extra: "-G Ninja"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Catch2
shell: bash
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
${{ matrix.sudo }} cmake --build build/ --target install --config ${{ matrix.build-type }}
- name: Configure NiftyReg
shell: bash
run: |
mkdir build && cd build
cmake -DCMAKE_C_COMPILER=${{ matrix.c-compiler }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBUILD_ALL_DEP=${{ matrix.build-all-dep }} \
-DUSE_CUDA=OFF \
-DUSE_OPENCL=OFF \
-DUSE_SSE=${{ matrix.use-sse }} \
-DUSE_OPENMP=ON \
-DBUILD_TESTING=ON \
${{ matrix.cmake-extra }} \
..
- name: Build NiftyReg
shell: bash
run: cmake --build build --config ${{ matrix.build-type }}
- name: Run tests
shell: bash
working-directory: build
run: ctest -V