slackbuilds_ponce/graphics/OpenSubdiv/CUDA-compatibility.patch
Christoph Willing 3b5cc06c85
graphics/OpenSubdiv: Updated for version 3.5.1
Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-09-02 18:02:41 +07:00

18 lines
862 B
Diff

--- CMakeLists.txt.orig 2023-08-29 11:13:57.755000000 +1000
+++ CMakeLists.txt 2023-08-29 11:19:42.759000000 +1000
@@ -605,8 +605,14 @@
if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
if (CUDA_VERSION_MAJOR LESS 6)
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
- elseif (CUDA_VERSION_MAJOR LESS 8)
+ 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 )
+ elseif (CUDA_VERSION_MAJOR LESS 12)
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
+ else ()
+ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_50 )
endif()
endif()
endif()