From dd091d0960c3334c17df2456e3dc3ac48a048a3e Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Wed, 15 Sep 2021 16:58:05 +0200 Subject: [PATCH] consistent pointer offloading instead of views --- Grid/lattice/Lattice_arith.h | 2 +- Grid/lattice/Lattice_basis.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Grid/lattice/Lattice_arith.h b/Grid/lattice/Lattice_arith.h index 3c269c58..b39a475d 100644 --- a/Grid/lattice/Lattice_arith.h +++ b/Grid/lattice/Lattice_arith.h @@ -225,7 +225,7 @@ void axpy(Lattice &ret,sobj a,const Lattice &x,const Lattice & autoView( x_v , x, AcceleratorRead); autoView( y_v , y, AcceleratorRead); accelerator_for(ss,x_v.size(),vobj::Nsimd(),{ - auto tmp = a*x_v(ss)+y_v(ss); + auto tmp = a*coalescedRead(x_v[ss])+coalescedRead(y_v[ss]); coalescedWrite(ret_v[ss],tmp); }); } diff --git a/Grid/lattice/Lattice_basis.h b/Grid/lattice/Lattice_basis.h index 863b2548..0928cbd7 100644 --- a/Grid/lattice/Lattice_basis.h +++ b/Grid/lattice/Lattice_basis.h @@ -125,7 +125,7 @@ void basisRotate(VField &basis,Matrix& Qt,int j0, int j1, int k0,int k1,int Nm) for(int k=k0; k