Skip to content

Commit

Permalink
fix nvcc compile option to be compatible with older cuda (#7065)
Browse files Browse the repository at this point in the history
Co-authored-by: masa <masa@pop-os.localdomain>
  • Loading branch information
masahi and masa committed Dec 9, 2020
1 parent 465cd14 commit c31e338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/CUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if(USE_CUDA)
message(STATUS "Build with Thrust support")
cmake_minimum_required(VERSION 3.13) # to compile CUDA code
enable_language(CUDA)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-extended-lambda")
file(GLOB CONTRIB_THRUST_SRC src/runtime/contrib/thrust/*.cu)
list(APPEND RUNTIME_SRCS ${CONTRIB_THRUST_SRC})
endif(USE_THRUST)
Expand Down

0 comments on commit c31e338

Please sign in to comment.