move definition of struct containing double to avoid failure on Intel Xe GPU

This commit is contained in:
Axel Kohlmeyer
2023-07-17 18:34:03 -04:00
parent fa4a3a0622
commit 74c5ca0996

View File

@ -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