Skip to content

Commit 123fddc

Browse files
gongchensuzhuyue
andauthored
fix: add -std=c++17 to Iluvatar CUDA flags
- pass -std=c++17 through CMAKE_CUDA_FLAGS for Iluvatar clang builds Co-authored-by: zhuyue <zhuyue@qiyuanlab.com>
1 parent 13cf84a commit 123fddc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ if(WITH_ILUVATAR)
211211
# `-x ivcore` must not be in `CMAKE_CUDA_FLAGS` — CMake passes those flags
212212
# to both compile and link steps. During linking, `-x ivcore` causes
213213
# `clang++` to re-parse `.o` files as source code.
214-
set(CMAKE_CUDA_FLAGS "--cuda-gpu-arch=${ILUVATAR_ARCH} -fPIC -Wno-error=unused-variable -Wno-error=unused-private-field -Wno-unused-variable" CACHE STRING "Iluvatar CUDA flags")
214+
set(CMAKE_CUDA_FLAGS "--cuda-gpu-arch=${ILUVATAR_ARCH} -fPIC -Wno-error=unused-variable -Wno-error=unused-private-field -Wno-unused-variable -std=c++17" CACHE STRING "Iluvatar CUDA flags")
215215
set(CMAKE_CUDA_SEPARABLE_COMPILATION OFF CACHE BOOL "Disable RDC for Iluvatar")
216216
set(CMAKE_CUDA_ARCHITECTURES OFF CACHE STRING "Iluvatar CUDA architectures (passed via CMAKE_CUDA_FLAGS)")
217217
# Iluvatar does not ship `libcudadevrt`, which CMake's compiler test

0 commit comments

Comments
 (0)