From cfe1b13225dbe2f35b04a038afaf2d535236913a Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 21 May 2024 01:14:08 +0100 Subject: [PATCH] Back out zero change --- Grid/lattice/Lattice_base.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Grid/lattice/Lattice_base.h b/Grid/lattice/Lattice_base.h index 1aefd9c1..70a57ae5 100644 --- a/Grid/lattice/Lattice_base.h +++ b/Grid/lattice/Lattice_base.h @@ -236,11 +236,18 @@ public: template inline Lattice & operator = (const sobj & r){ vobj vtmp; vtmp = r; +#if 1 + auto me = View(CpuWrite); + thread_for(ss,me.size(),{ + me[ss]= r; + }); +#else auto me = View(AcceleratorWrite); accelerator_for(ss,me.size(),vobj::Nsimd(),{ auto stmp=coalescedRead(vtmp); coalescedWrite(me[ss],stmp); }); +#endif me.ViewClose(); return *this; }