From 73f7e5181c8b4972efc742eeb3af094b15f20cc9 Mon Sep 17 00:00:00 2001 From: masahi Date: Wed, 9 Dec 2020 14:52:58 +0900 Subject: [PATCH] fix nvcc compile option to be compatible with older cuda (#7065) Co-authored-by: masa --- cmake/modules/CUDA.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/CUDA.cmake b/cmake/modules/CUDA.cmake index 0b35229f790c..0aed73082593 100644 --- a/cmake/modules/CUDA.cmake +++ b/cmake/modules/CUDA.cmake @@ -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)