Skip to content

Commit

Permalink
Fix CUDA CMake model typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tom91136 committed Apr 18, 2024
1 parent b12dc83 commit 1991448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cuda/model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ macro(setup)
if (CUDA_CLANG_DRIVER)
if (CMAKE_VERSION VERSION_LESS "3.18.0")
message(FATAL_ERROR "Using clang driver for CUDA is only supported for CMake >= 3.18")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -std=c++17 --cuda-gpu-arch=${CUDA_ARCH} ${CUDA_EXTRA_FLAGS}")
endif ()
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -std=c++17 --cuda-gpu-arch=${CUDA_ARCH} ${CUDA_EXTRA_FLAGS}")
else ()
# add -forward-unknown-to-host-compiler for compatibility reasons
# add -std=c++17 manually as older CMake seems to omit this (source gets treated as C otherwise)
Expand Down

0 comments on commit 1991448

Please sign in to comment.