Skip to content

Commit

Permalink
CUDA Test 6
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Feb 2, 2024
1 parent 3b6159c commit 83bb53f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]
platform: [cpu, cuda]
include:
- platform: cpu
platform-name: ""
use-cuda: "OFF"
- platform: cuda
platform-name: "-CUDA"
use-cuda: "ON"
- 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"
use-cuda: "OFF"
- sudo: "sudo" # For Ubuntu and macOS
c-compiler: "gcc"
cxx-compiler: "g++"
Expand All @@ -25,7 +31,6 @@ jobs:
sudo: ""
c-compiler: "cl.exe"
cxx-compiler: "cl.exe"
use_cuda: "ON"
- build_type: "Release" # For all platforms

steps:
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_ALL_DEP=ON \
-DUSE_CUDA=${{ matrix.use_cuda }} \
-DUSE_CUDA=${{ matrix.use-cuda }} \
-DUSE_OPENCL=OFF \
-DUSE_SSE=ON \
-DUSE_OPENMP=ON \
Expand Down Expand Up @@ -94,4 +99,4 @@ jobs:
with:
repo_token: ${{ github.token }}
file: build/NiftyReg.zip
asset_name: NiftyReg-${{ matrix.os-name }}-${{ steps.get_tag.outputs.tag }}.zip
asset_name: NiftyReg-${{ matrix.os-name }}${{ matrix.platform-name }}-${{ steps.get_tag.outputs.tag }}.zip
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
399
401
16 changes: 8 additions & 8 deletions reg-lib/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
# return()
# endif("${RUN_OUTPUT_VAR}" LESS "30")
# string(REPLACE "." "" CAPABILITY_CODE ${RUN_OUTPUT_VAR})
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_52,code=sm_52")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_52,code=sm_52")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_60,code=sm_60")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_61,code=sm_61")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_70,code=sm_70")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_75,code=sm_75")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_80,code=sm_80")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_86,code=sm_86")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_89,code=sm_89")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_89,code=compute_89")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_61,code=sm_61")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_70,code=sm_70")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_75,code=sm_75")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_80,code=sm_80")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_86,code=sm_86")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_89,code=sm_89")
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_89,code=compute_89")
# If desired, add PIC flags
if(CMAKE_POSITION_INDEPENDENT_CODE AND DEFINED CMAKE_C_COMPILE_OPTIONS_PIC)
# Add (undocumented) CMake flag that should tell the host compiler to generate position independent code
Expand Down

0 comments on commit 83bb53f

Please sign in to comment.