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 electriclilies committed Feb 18, 2021
1 parent dc3929a commit 77e174c
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 77e174c

Please sign in to comment.