We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e335e3d commit d198684Copy full SHA for d198684
1 file changed
source/lib/src/gpu/CMakeLists.txt
@@ -43,9 +43,15 @@ if(USE_CUDA_TOOLKIT)
43
message(FATAL_ERROR "CUDA version must be >= 9.0")
44
endif()
45
46
+ # NVCC compilation errors with gcc-14 and c++11 Cases in other repos:
47
+ # https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/issues/12
48
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14")
49
+ set_if_higher(CMAKE_CUDA_STANDARD 14)
50
+ endif()
51
+
52
# CUDA 13.0+ requires C++17
53
if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "13.0")
- set(CMAKE_CUDA_STANDARD 17)
54
+ set_if_higher(CMAKE_CUDA_STANDARD 17)
55
message(
56
STATUS
57
"CUDA ${CMAKE_CUDA_COMPILER_VERSION} detected, setting C++ standard to 17"
0 commit comments