Added dev-util/nvidia-cuda-toolkit-13.0.0

This commit is contained in:
saundersp
2025-08-16 21:04:31 +02:00
parent 7c5f040669
commit 8568216224
7 changed files with 704 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
diff '--color=auto' -ur a/builds/cuda_crt/targets/x86_64-linux/include/crt/math_functions.h b/builds/cuda_crt/targets/x86_64-linux/include/crt/math_functions.h
--- a/builds/cuda_crt/targets/x86_64-linux/include/crt/math_functions.h
+++ b/builds/cuda_crt/targets/x86_64-linux/include/crt/math_functions.h
@@ -626,7 +626,11 @@
*
* \note_accuracy_double
*/
+#if defined(__GLIBC__) && (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 42)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true);
+#else
extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x);
+#endif
/**
* \ingroup CUDA_MATH_SINGLE
@@ -650,7 +654,11 @@
*
* \note_accuracy_single
*/
+#if defined(__GLIBC__) && (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 42)
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x) noexcept (true);
+#else
extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x);
+#endif
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
namespace std {