summarylogtreecommitdiffstats
path: root/cuda-11.patch
blob: 2d653fcb078ee544b7658b5d0a1ab4396857ca08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 795829e..86c655e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -128,7 +128,10 @@ if(CUDA_ENABLE)
             message(STATUS "xmr-stak-nvidia: set max threads per block to ${XMR-STAK_THREADS}")
             add_definitions("-DXMR_STAK_THREADS=${XMR-STAK_THREADS}")
         endif()
-        set(DEFAULT_CUDA_ARCH "30;35;37;50;52")
+        set(DEFAULT_CUDA_ARCH "50;52")
+        if(CUDA_VERSION VERSION_LESS 11)
+            list(APPEND DEFAULT_CUDA_ARCH "30")
+        endif()
         # Fermi GPUs are only supported with CUDA < 9.0
         if(CUDA_VERSION VERSION_LESS 9.0)
             list(APPEND DEFAULT_CUDA_ARCH "20")