1From 44d0a3a9bd8c6fe59f6ccb44206a50a900bfcf4a Mon Sep 17 00:00:00 2001
2From: Connor Baker <connor.baker@tweag.io>
3Date: Tue, 31 Oct 2023 14:30:24 +0000
4Subject: [PATCH] aarch64/math-vector.h: add NVCC include guard
5
6---
7 sysdeps/aarch64/fpu/bits/math-vector.h | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
9
10diff --git a/sysdeps/aarch64/fpu/bits/math-vector.h b/sysdeps/aarch64/fpu/bits/math-vector.h
11index 7c200599c1..583a426494 100644
12--- a/sysdeps/aarch64/fpu/bits/math-vector.h
13+++ b/sysdeps/aarch64/fpu/bits/math-vector.h
14@@ -25,17 +25,17 @@
15 /* Get default empty definitions for simd declarations. */
16 #include <bits/libm-simd-decl-stubs.h>
17
18-#if __GNUC_PREREQ(9, 0)
19+#if __GNUC_PREREQ(9, 0) && !defined(__CUDACC__)
20 # define __ADVSIMD_VEC_MATH_SUPPORTED
21 typedef __Float32x4_t __f32x4_t;
22 typedef __Float64x2_t __f64x2_t;
23-#elif __glibc_clang_prereq(8, 0)
24+#elif __glibc_clang_prereq(8, 0) && !defined(__CUDACC__)
25 # define __ADVSIMD_VEC_MATH_SUPPORTED
26 typedef __attribute__ ((__neon_vector_type__ (4))) float __f32x4_t;
27 typedef __attribute__ ((__neon_vector_type__ (2))) double __f64x2_t;
28 #endif
29
30-#if __GNUC_PREREQ(10, 0) || __glibc_clang_prereq(11, 0)
31+#if (__GNUC_PREREQ(10, 0) || __glibc_clang_prereq(11, 0)) && !defined(__CUDACC__)
32 # define __SVE_VEC_MATH_SUPPORTED
33 typedef __SVFloat32_t __sv_f32_t;
34 typedef __SVFloat64_t __sv_f64_t;
35--
362.42.0
37