Skip to content

Commit

Permalink
fix nvcc compile option to be compatible with older cuda (apache#7065)
Browse files Browse the repository at this point in the history
Co-authored-by: masa <masa@pop-os.localdomain>
  • Loading branch information
2 people authored and trevor-m committed Jan 21, 2021
1 parent bf80b02 commit 73f7e51
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 @@ -60,7 +60,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 73f7e51

Please sign in to comment.