From 2758b95612fb60ac43e11a1dc7a4afa6a7e1b33a Mon Sep 17 00:00:00 2001 From: peters <peters@irmb.tu-bs.de> Date: Thu, 27 May 2021 12:02:40 +0200 Subject: [PATCH] Pass --extended-lambda to nvcc link, as we are passing lambda to device code. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 197ac2600..d74febdac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,6 @@ if(BUILD_VF_GPU) else() set(CMAKE_CUDA_FLAGS "-dlto -arch=sm_${CMAKE_CUDA_ARCHITECTURES}") - message("CMAKE_CUDA_FLAGS: ${CMAKE_CUDA_FLAGS}") set(CMAKE_CUDA_ARCHITECTURES OFF) list(APPEND VF_COMPILER_DEFINITION BUILD_CUDA_LTO) @@ -120,6 +119,9 @@ if(BUILD_VF_GPU) endif() endif() + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda") + + message("CMAKE_CUDA_FLAGS: ${CMAKE_CUDA_FLAGS}") message("CUDA Architecture: ${CMAKE_CUDA_ARCHITECTURES}") endif() -- GitLab