From 13cf9427df109779219f9ede928d698f0a11f4f2 Mon Sep 17 00:00:00 2001 From: Simone Gasparini Date: Tue, 6 Oct 2020 17:03:56 +0200 Subject: [PATCH] [cmake] added support for SM86 as per here http://arnon.dk/tag/nvcc-flags/ --- cmake/ChooseCudaCC.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/ChooseCudaCC.cmake b/cmake/ChooseCudaCC.cmake index abd0086f..d9bc6c22 100755 --- a/cmake/ChooseCudaCC.cmake +++ b/cmake/ChooseCudaCC.cmake @@ -65,7 +65,7 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS) set(CC_LIST_BY_SYSTEM_PROCESSOR "") if(CMAKE_SYSTEM_PROCESSOR IN_LIST OTHER_SUPPORTED_PROCESSORS) - list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "20;21;30;35;50;52;60;61;70;75;80") + list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "20;21;30;35;50;52;60;61;70;75;80;86") endif() if(CMAKE_SYSTEM_PROCESSOR IN_LIST TEGRA_SUPPORTED_PROCESSORS) list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "32;53;62;72") @@ -79,7 +79,7 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS) # Shortening the lists saves a lot of compile time. # set(CUDA_MIN_CC 20) - set(CUDA_MAX_CC 80) + set(CUDA_MAX_CC 86) if(CUDA_VERSION_MAJOR GREATER_EQUAL 11) set(CUDA_MIN_CC 35) elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 10)