diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index ac6cd57..6443e78 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -60,7 +60,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: ${{ runner.os }}-${{ matrix.config }}-cache @@ -132,10 +132,10 @@ jobs: sudo apt-get install ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - - uses: Jimver/cuda-toolkit@v0.2.17 + - uses: Jimver/cuda-toolkit@v0.2.22 id: cuda-toolkit with: - cuda: '12.4.0' + cuda: '12.8.1' sub-packages: '["nvcc"]' method: 'network' @@ -145,7 +145,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: ${{ runner.os }}-${{ matrix.config }}-CUDA-cache diff --git a/CMakeLists.txt b/CMakeLists.txt index c8bb2d6..f784114 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,7 +169,7 @@ if(SCALABLE_CCD_WITH_CUDA) # library to be built with -dc as the member functions could be called by # other libraries and executables. set_target_properties(scalable_ccd PROPERTIES CUDA_SEPARABLE_COMPILATION ON) - + if(DEFINED SCALABLE_CCD_CUDA_ARCHITECTURES) message(STATUS "CUDA_ARCHITECTURES was specified, skipping auto-detection") set(CMAKE_CUDA_ARCHITECTURES ${SCALABLE_CCD_CUDA_ARCHITECTURES}) @@ -195,11 +195,12 @@ if(SCALABLE_CCD_WITH_CUDA) BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES}) endif() - target_compile_options(scalable_ccd PRIVATE + target_compile_options(scalable_ccd PRIVATE $<$: --generate-line-info --use_fast_math --relocatable-device-code=true + --expt-relaxed-constexpr > )