mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
net-misc/sunshine: Don't target CUDA architectures that LLVM doesn't support yet
Closes: https://bugs.gentoo.org/963570 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
26
net-misc/sunshine/files/sunshine-new-cuda.patch
Normal file
26
net-misc/sunshine/files/sunshine-new-cuda.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From 220c88f1a4b93ca79427803dae237aca9abf1596 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Fri, 3 Oct 2025 23:06:32 +0100
|
||||
Subject: [PATCH] Don't target CUDA architectures that LLVM doesn't support yet
|
||||
|
||||
Upstream builds with NVCC, but we don't.
|
||||
--- a/cmake/compile_definitions/linux.cmake
|
||||
+++ b/cmake/compile_definitions/linux.cmake
|
||||
@@ -37,12 +37,12 @@ if(${SUNSHINE_ENABLE_CUDA})
|
||||
endif()
|
||||
|
||||
# https://docs.nvidia.com/cuda/archive/12.9.0/cuda-compiler-driver-nvcc/index.html
|
||||
- if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.9)
|
||||
+ if(FALSE)
|
||||
list(APPEND CMAKE_CUDA_ARCHITECTURES 103 121)
|
||||
endif()
|
||||
|
||||
# https://docs.nvidia.com/cuda/archive/13.0.0/cuda-compiler-driver-nvcc/index.html
|
||||
- if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
|
||||
+ if(FALSE)
|
||||
list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES 101)
|
||||
list(APPEND CMAKE_CUDA_ARCHITECTURES 110)
|
||||
else()
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -190,6 +190,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2025.122.141614-nvcodec.patch
|
||||
"${FILESDIR}"/${PN}-new-cuda.patch
|
||||
)
|
||||
|
||||
# Make this mess a bit simpler.
|
||||
|
||||
@@ -190,6 +190,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2025.122.141614-nvcodec.patch
|
||||
"${FILESDIR}"/${PN}-new-cuda.patch
|
||||
)
|
||||
|
||||
# Make this mess a bit simpler.
|
||||
|
||||
Reference in New Issue
Block a user