From ba5ea5830b7892de64000632f2f341a9d398179f Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 24 Jan 2018 13:40:56 +0000 Subject: [PATCH] Acceleartor loops --- lib/lattice/Lattice_transpose.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lattice/Lattice_transpose.h b/lib/lattice/Lattice_transpose.h index 945d1194..d7db8fe1 100644 --- a/lib/lattice/Lattice_transpose.h +++ b/lib/lattice/Lattice_transpose.h @@ -41,9 +41,9 @@ NAMESPACE_BEGIN(Grid); template inline Lattice transpose(const Lattice &lhs){ Lattice ret(lhs._grid); - parallel_for(int ss=0;ssoSites();ss++){ + accelerator_loop(ss,lhs,{ ret._odata[ss] = transpose(lhs._odata[ss]); - } + }); return ret; }; @@ -54,9 +54,9 @@ template inline auto TransposeIndex(const Lattice &lhs) -> Lattice(lhs._odata[0]))> { Lattice(lhs._odata[0]))> ret(lhs._grid); - parallel_for(int ss=0;ssoSites();ss++){ + accelerator_loop(ss,lhs,{ ret._odata[ss] = transposeIndex(lhs._odata[ss]); - } + }); return ret; };