28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
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 {
 |