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; };