Skip to content

Commit

Permalink
[CUDA] Update CMake file for CUDA C++17 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg committed Feb 27, 2024
1 parent b0d7ed7 commit 6481881
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cuda/model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ register_flag_optional(CUDA_EXTRA_FLAGS


macro(setup)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CUDA_STANDARD 17)
if(NOT DEFINED CMAKE_CUDA17_STANDARD_COMPILE_OPTION)
set(CMAKE_CUDA17_STANDARD_COMPILE_OPTION "")
set(CMAKE_CUDA17_EXTENSION_COMPILE_OPTION "")
endif()

# XXX CMake 3.18 supports CMAKE_CUDA_ARCHITECTURES/CUDA_ARCHITECTURES but we support older CMakes
if(POLICY CMP0104)
Expand Down

0 comments on commit 6481881

Please sign in to comment.