2021-06-27 18:03:00 +00:00
|
|
|
diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt OpenSubdiv-3_4_4-new/CMakeLists.txt
|
|
|
|
--- OpenSubdiv-3_4_4-old/CMakeLists.txt 2021-06-14 16:59:54.699746298 +0300
|
|
|
|
+++ OpenSubdiv-3_4_4-new/CMakeLists.txt 2021-06-14 17:01:32.976412136 +0300
|
|
|
|
@@ -586,8 +586,12 @@
|
2020-01-02 11:37:11 +00:00
|
|
|
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 )
|
2021-06-27 18:03:00 +00:00
|
|
|
+ elseif (CUDA_VERSION_MAJOR LESS 11)
|
2020-10-02 16:55:57 +00:00
|
|
|
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
|
2021-06-27 18:03:00 +00:00
|
|
|
+ else()
|
2021-09-14 13:00:10 +00:00
|
|
|
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
|
2020-01-02 11:37:11 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|