mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
bfdafa5fad
* build(fedora): fix rawhide build
* Patch math_functions by CUDA major; add CUDA-13
Switch math_functions.h patching from Fedora-version logic to CUDA-major selection in spec and build scripts. Add CUDA-13-specific patches for aarch64 and x86_64 and rename the existing patch to cuda-12. Update scripts/linux_build.sh to pick the correct cuda-{12,13}-math_functions.patch, handle missing files gracefully, and add Fedora 45 detection with CUDA 13 defaults.
* Install Fedora development-tools group directly
Replace use of the dev_tools_group variable with the explicit "development-tools" group name when running dnf group install. Also remove redundant dev_tools_group="development-tools" assignments from various Fedora/version and platform:f42 branches to simplify the distro detection logic and avoid relying on the variable.
54 lines
1.6 KiB
Diff
54 lines
1.6 KiB
Diff
diff --color=auto -ur a/cuda/targets/x86_64-linux/include/crt/math_functions.h b/cuda/targets/x86_64-linux/include/crt/math_functions.h
|
|
--- a/cuda/targets/x86_64-linux/include/crt/math_functions.h
|
|
+++ b/cuda/targets/x86_64-linux/include/crt/math_functions.h
|
|
@@ -626,7 +626,7 @@
|
|
*
|
|
* \note_accuracy_double
|
|
*/
|
|
-extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x);
|
|
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true);
|
|
|
|
/**
|
|
* \ingroup CUDA_MATH_SINGLE
|
|
@@ -650,7 +650,7 @@
|
|
*
|
|
* \note_accuracy_single
|
|
*/
|
|
-extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x);
|
|
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x) noexcept (true);
|
|
|
|
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
|
|
namespace std {
|
|
@@ -6043,18 +6043,18 @@
|
|
|
|
#endif /* _WIN32 */
|
|
|
|
-__func__(double rsqrt(double a));
|
|
+__func__(double rsqrt(double a) noexcept (true));
|
|
|
|
__func__(double rcbrt(double a));
|
|
|
|
#if ! __NV_GLIBC_PROVIDES_IEC_60559_FUNCS
|
|
-__func__(double sinpi(double a));
|
|
+__func__(double sinpi(double a) noexcept (true));
|
|
|
|
-__func__(double cospi(double a));
|
|
+__func__(double cospi(double a) noexcept (true));
|
|
|
|
-__func__(float sinpif(float a));
|
|
+__func__(float sinpif(float a) noexcept (true));
|
|
|
|
-__func__(float cospif(float a));
|
|
+__func__(float cospif(float a) noexcept (true));
|
|
#endif
|
|
|
|
__func__(void sincospi(double a, double *sptr, double *cptr));
|
|
@@ -6069,7 +6069,7 @@
|
|
|
|
__func__(double erfcx(double a));
|
|
|
|
-__func__(float rsqrtf(float a));
|
|
+__func__(float rsqrtf(float a) noexcept (true));
|
|
|
|
__func__(float rcbrtf(float a));
|