You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
846 B
20 lines
846 B
From: "Alexander Golubev" <fatzer2@gmail.com>
|
|
|
|
Set correct default minimal -arch for CUDA 9 and 11
|
|
--- OpenSubdiv-3_4_4/CMakeLists.txt 2021-11-07 02:01:07.899484952 +0300
|
|
+++ OpenSubdiv-3_4_4/CMakeLists.txt.new 2021-11-07 02:01:23.402764409 +0300
|
|
@@ -587,8 +587,12 @@
|
|
if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
|
|
if (CUDA_VERSION_MAJOR LESS 6)
|
|
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
|
|
- else()
|
|
+ elseif (CUDA_VERSION_MAJOR LESS 9)
|
|
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
|
|
+ elseif (CUDA_VERSION_MAJOR LESS 11)
|
|
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_30 )
|
|
+ else()
|
|
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
|
|
endif()
|
|
endif()
|
|
endif()
|