archrelease: copy trunk to community-any
[ArchLinux/community.git] / opensubdiv / repos / community-x86_64 / cuda11.patch
blob194f0cb1c936643890fca43a8e5ff510a0aeb4c3
1 diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt OpenSubdiv-3_4_4-new/CMakeLists.txt
2 --- OpenSubdiv-3_4_4-old/CMakeLists.txt 2021-06-14 16:59:54.699746298 +0300
3 +++ OpenSubdiv-3_4_4-new/CMakeLists.txt 2021-06-14 17:01:32.976412136 +0300
4 @@ -586,8 +586,12 @@
5 if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
6 if (CUDA_VERSION_MAJOR LESS 6)
7 set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
8 - else()
9 + elseif (CUDA_VERSION_MAJOR LESS 9)
10 set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
11 + elseif (CUDA_VERSION_MAJOR LESS 11)
12 + set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
13 + else()
14 + set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
15 endif()
16 endif()
17 endif()