1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

looping construct

This commit is contained in:
Peter Boyle 2019-06-15 08:36:48 +01:00
parent e8b78f596e
commit 377fa5dec1

View File

@ -94,7 +94,7 @@ public:
for (int mu = 0; mu < Ndim; mu++) for (int mu = 0; mu < Ndim; mu++)
{ {
// pshift = Cshift(p, mu, +1); // not efficient, implement with stencils // pshift = Cshift(p, mu, +1); // not efficient, implement with stencils
thread_loop( (int i = 0; i < p.Grid()->oSites(); i++), thread_for(i, p.Grid()->oSites(),
{ {
int permute_type; int permute_type;
StencilEntry *SE; StencilEntry *SE;
@ -153,8 +153,8 @@ public:
StencilEntry *SE; StencilEntry *SE;
const vobj *temp; const vobj *temp;
thread_loop( (int i = 0; i < p.Grid()->oSites(); i++) ,{ thread_for(i, p.Grid()->oSites(),
{
SE = phiStencil.GetEntry(permute_type, point, i); SE = phiStencil.GetEntry(permute_type, point, i);
// prefetch next p? // prefetch next p?