1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-05-27 12:34:16 +01:00

Modified repack

This commit is contained in:
Peter Boyle
2026-05-19 08:53:13 -04:00
parent 796c6cae4e
commit d6b1388741
+3 -5
View File
@@ -261,11 +261,9 @@ inline void sumD_gpu_reduce_words(const vobj *lat, Integer osites,
#ifdef GRID_REDUCTION_TIMING
RealD t_pack = -usecond();
#endif
accelerator_for(ss, osites, 1, {
Bundle b;
for (int k = 0; k < R; k++)
b._internal[k] = idat[ss * words + base + k];
buf_p[ss] = b;
constexpr int Nsimd = vobj::Nsimd();
accelerator_for2d(k, R, ss, osites, Nsimd, {
coalescedWrite(buf_p[ss]._internal[k], coalescedRead(idat[ss * words + base + k]));
});
#ifdef GRID_REDUCTION_TIMING
t_pack += usecond();