From 80b1fa8721dc9a918bafd672bfb49e67bc8dcf39 Mon Sep 17 00:00:00 2001 From: masa Date: Wed, 9 Dec 2020 11:12:02 +0900 Subject: [PATCH] fix nvcc compile option to be compatible with older cuda --- 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 3a0d56a7bb1e..1e104218a456 100644 --- a/cmake/modules/CUDA.cmake +++ b/cmake/modules/CUDA.cmake @@ -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)