From 3b7fce1e7660517ffb866f77f51747cfbd8afb87 Mon Sep 17 00:00:00 2001 From: "Henrique B.R" Date: Fri, 2 Apr 2021 14:38:41 +0100 Subject: [PATCH] Reverted checkerboard changes --- Grid/lattice/Lattice_transfer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Grid/lattice/Lattice_transfer.h b/Grid/lattice/Lattice_transfer.h index e7ab77a8..5a26cce9 100644 --- a/Grid/lattice/Lattice_transfer.h +++ b/Grid/lattice/Lattice_transfer.h @@ -51,9 +51,9 @@ template inline void pickCheckerboard(int cb,Lattice &half,con { half.Checkerboard() = cb; - autoView( half_v, half, AcceleratorWrite); - autoView( full_v, full, AcceleratorRead); - accelerator_for(ss, full.Grid()->oSites(),full.Grid()->Nsimd(),{ + autoView( half_v, half, CpuWrite); + autoView( full_v, full, CpuRead); + thread_for(ss, full.Grid()->oSites(),{ int cbos; Coordinate coor; full.Grid()->oCoorFromOindex(coor,ss); @@ -68,9 +68,9 @@ template inline void pickCheckerboard(int cb,Lattice &half,con template inline void setCheckerboard(Lattice &full,const Lattice &half) { int cb = half.Checkerboard(); - autoView( half_v , half, AcceleratorRead); - autoView( full_v , full, AcceleratorWrite); - accelerator_for(ss, full.Grid()->oSites(),full.Grid()->Nsimd(),{ + autoView( half_v , half, CpuRead); + autoView( full_v , full, CpuWrite); + thread_for(ss,full.Grid()->oSites(),{ Coordinate coor; int cbos;