1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-05-22 18:14:17 +01:00

SYCL updates -- operator = giving trouble on Aurora.

SYCL reduction is failing intermittently with SVM interface - returns
zero, expect non-zero.
Think I need to remove ALL dependence on SVM.
This commit is contained in:
2024-09-04 13:53:48 +00:00
parent aa67a5b095
commit 622f78ebea
2 changed files with 47 additions and 6 deletions
+5 -2
View File
@@ -236,10 +236,13 @@ public:
template<class sobj> inline Lattice<vobj> & operator = (const sobj & r){
vobj vtmp;
vtmp = r;
#if defined(GRID_HIP) || defined(GRID_CUDA) || defined (GRID_SYCL)
#if 0
deviceVector<vobj> vvtmp(1);
acceleratorPut(vvtmp[0],vtmp);
vobj *vvtmp_p = & vvtmp[0];
auto me = View(AcceleratorWrite);
accelerator_for(ss,me.size(),vobj::Nsimd(),{
auto stmp=coalescedRead(vtmp);
auto stmp=coalescedRead(*vvtmp_p);
coalescedWrite(me[ss],stmp);
});
#else