From 67d76a8b786d335700926a48da94c5dcc9b236cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20M=C3=A9lou?= Date: Wed, 21 Dec 2022 12:49:18 +0100 Subject: [PATCH] [cmake] Add support for cuda-12 --- src/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cdcab81b7f..0286c4a29d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -659,7 +659,13 @@ if(ALICEVISION_HAVE_CUDA) set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG};-G;-g") # set(CUDA_NVCC_FLAGS_RELEASE "${CUDA_NVCC_FLAGS_RELEASE};-O3") - if(CUDA_VERSION VERSION_GREATER_EQUAL 11.1) + if(CUDA_VERSION_MAJOR VERSION_GREATER_EQUAL 12) + set(ALICEVISION_CUDA_CC_LIST_BASIC 50 52 60 61 62 70 72 75 80 86 87 89 90) + elseif(CUDA_VERSION VERSION_GREATER_EQUAL 11.8) + set(ALICEVISION_CUDA_CC_LIST_BASIC 35 50 52 60 61 62 70 72 75 80 86 87 89 90) + elseif(CUDA_VERSION VERSION_GREATER_EQUAL 11.5) + set(ALICEVISION_CUDA_CC_LIST_BASIC 35 50 52 60 61 62 70 72 75 80 86 87) + elseif(CUDA_VERSION VERSION_GREATER_EQUAL 11.1) set(ALICEVISION_CUDA_CC_LIST_BASIC 35 50 52 60 61 62 70 72 75 80 86) elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 11) set(ALICEVISION_CUDA_CC_LIST_BASIC 35 50 52 60 61 62 70 72 75 80)