Skip to content

Commit 73f7e51

Browse files
masahimasa
authored andcommitted
fix nvcc compile option to be compatible with older cuda (apache#7065)
Co-authored-by: masa <masa@pop-os.localdomain>
1 parent bf80b02 commit 73f7e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/CUDA.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if(USE_CUDA)
6060
message(STATUS "Build with Thrust support")
6161
cmake_minimum_required(VERSION 3.13) # to compile CUDA code
6262
enable_language(CUDA)
63-
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda")
63+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-extended-lambda")
6464
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/*.cu)
6565
list(APPEND RUNTIME_SRCS ${CONTRIB_THRUST_SRC})
6666
endif(USE_THRUST)

0 commit comments

Comments
 (0)