Skip to content

Commit

Permalink
[GHA] added CUDA and NiftyPET
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Nov 25, 2023
1 parent 23ba669 commit 11ad9a4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- os: ubuntu-latest
compiler: gcc
compiler_version: 9
CUDA: "OFF"
BUILD_FLAGS: "-DSTIR_OPENMP=ON"
BUILD_TYPE: "Release"
parallelproj: "ON"
Expand All @@ -45,6 +46,7 @@ jobs:
- os: ubuntu-latest
compiler: clang
#compiler_version:
CUDA: "OFF"
BUILD_FLAGS: "-DSTIR_OPENMP=ON"
BUILD_TYPE: "Release"
parallelproj: "ON"
Expand All @@ -54,6 +56,7 @@ jobs:
- os: ubuntu-latest
compiler: gcc
compiler_version: 10
CUDA: "OFF"
BUILD_FLAGS: "-DSTIR_OPENMP=ON -DCMAKE_CXX_STANDARD=17"
BUILD_TYPE: "Debug"
parallelproj: "OFF"
Expand All @@ -62,14 +65,25 @@ jobs:
- os: ubuntu-latest
compiler: gcc
compiler_version: 12
CUDA: "OFF"
BUILD_FLAGS: "-DSTIR_OPENMP=ON -DCMAKE_CXX_STANDARD=14"
BUILD_TYPE: "RelWithDebInfo"
parallelproj: "ON"
ROOT: "OFF"
ITK: "ON"
- os: ubuntu-latest
compiler: gcc
compiler_version: 12
CUDA: "ON"
BUILD_FLAGS: "-DSTIR_OPENMP=ON -DCMAKE_CXX_STANDARD=14"
BUILD_TYPE: "Release"
parallelproj: "ON"
ROOT: "OFF"
ITK: "ON"
- os: macOS-latest
compiler: gcc
compiler_version: 11
CUDA: "OFF"
BUILD_FLAGS: "-DSTIR_OPENMP=OFF"
parallelproj: "OFF"
BUILD_TYPE: "Debug"
Expand Down Expand Up @@ -152,6 +166,12 @@ jobs:
echo CC="$CC" >> $GITHUB_ENV
echo CXX="$CXX" >> $GITHUB_ENV
- if: ${{ matrix.CUDA }} == "ON"
uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'

- name: install_dependencies
shell: bash
run: |
Expand Down Expand Up @@ -216,6 +236,12 @@ jobs:
cmake --build . --target install --config Release
cd ../..
fi
# Install NiftyPET
if test "${{ matrix.CUDA}XX" == "ONXX"; then
export PATHTOOLS=${GITHUB_WORKSPACE}/NiftyPET_tools
export HMUDIR=${GITHUB_WORKSPACE}/mmr_hardwareumaps
python -m pip install "nipet>=2"
fi
# Install ROOT (warning: currently only valid on Ubuntu)
if test "${{matrix.ROOT}}XX" == "ONXX"; then
Expand Down

0 comments on commit 11ad9a4

Please sign in to comment.