From b6ebab4119e2f6d1f277408aa0e723eea88d3a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Widera?= Date: Wed, 27 Nov 2019 11:00:19 +0100 Subject: [PATCH] remove deprecated NVIDIA architectures With CUDA 10.2+, SM 3.5-5.0 are marked as deprecated. SM 3.0 will be dropped in the next release (10.3 or 11.0). --- alpakaConfig.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alpakaConfig.cmake b/alpakaConfig.cmake index ec2d913f95ce..5e90b840a5ca 100644 --- a/alpakaConfig.cmake +++ b/alpakaConfig.cmake @@ -431,8 +431,10 @@ IF(ALPAKA_ACC_GPU_CUDA_ENABLE) SET(ALPAKA_CUDA_VERSION "${CUDA_VERSION}") IF(CUDA_VERSION VERSION_LESS 9.0) SET(ALPAKA_CUDA_ARCH "20" CACHE STRING "GPU architecture") - ELSE() + ELSEIF(CUDA_VERSION VERSION_LESS 10.3) SET(ALPAKA_CUDA_ARCH "30" CACHE STRING "GPU architecture") + ELSE() + SET(ALPAKA_CUDA_ARCH "35" CACHE STRING "GPU architecture") ENDIF() SET(ALPAKA_CUDA_COMPILER "nvcc" CACHE STRING "CUDA compiler") SET_PROPERTY(CACHE ALPAKA_CUDA_COMPILER PROPERTY STRINGS "nvcc;clang")