From 74c5ca0996ce14a5a1c8514a276761d1538ccc0a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 17 Jul 2023 18:34:03 -0400 Subject: [PATCH] move definition of struct containing double to avoid failure on Intel Xe GPU --- lib/gpu/lal_preprocessor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gpu/lal_preprocessor.h b/lib/gpu/lal_preprocessor.h index d3e2481646..93d6936f38 100644 --- a/lib/gpu/lal_preprocessor.h +++ b/lib/gpu/lal_preprocessor.h @@ -333,12 +333,12 @@ inline void ucl_prefetch(const __global int *p) { struct _lgpu_float3 { float x; float y; float z; }; -struct _lgpu_double3 { - double x; double y; double z; -}; #ifdef _SINGLE_SINGLE #define acctyp3 struct _lgpu_float3 #else +struct _lgpu_double3 { + double x; double y; double z; +}; #define acctyp3 struct _lgpu_double3 #endif