diff options
author | Chris Xiong <chirs241097@gmail.com> | 2023-02-24 22:06:44 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2023-02-24 22:06:44 -0500 |
commit | 0d4dad4dd95c4a645743d63a4ed9ee3386673f26 (patch) | |
tree | 0c17409f8561ff9a76f672afaa7a7e59e598a973 /media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch | |
parent | de2ae79956e40ba0885adbd305a9fefa5482747e (diff) | |
download | ppo-0d4dad4dd95c4a645743d63a4ed9ee3386673f26.tar.xz |
opensubdiv cuda 12
Diffstat (limited to 'media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch')
-rw-r--r-- | media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch b/media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch new file mode 100644 index 0000000..413659e --- /dev/null +++ b/media-libs/opensubdiv/files/opensubdiv-3.4.4-add-CUDA12-compatibility.patch @@ -0,0 +1,21 @@ +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,14 @@ + 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 ) ++ elseif (CUDA_VERSION_MAJOR LESS 12) ++ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 ) ++ else() ++ set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_52 ) + endif() + endif() + endif() |