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

Back to original thread policy post test

This commit is contained in:
Peter Boyle 2016-12-23 09:49:04 +00:00
parent eabf316ed9
commit 25efefc5b4

View File

@ -437,7 +437,7 @@ void WilsonFermion5D<Impl>::DhopInternal(StencilImpl & st, LebesgueOrder &lo,
stat.accum(nthreads); stat.accum(nthreads);
#endif #endif
} else { } else {
#if 0 #if 1
PARALLEL_FOR_LOOP PARALLEL_FOR_LOOP
for (int ss = 0; ss < U._grid->oSites(); ss++) { for (int ss = 0; ss < U._grid->oSites(); ss++) {
int sU = ss; int sU = ss;
@ -447,13 +447,11 @@ void WilsonFermion5D<Impl>::DhopInternal(StencilImpl & st, LebesgueOrder &lo,
#else #else
#pragma omp parallel #pragma omp parallel
{ {
for(int i=0;i<10;i++){
int me, myoff,mywork;
int len = U._grid->oSites(); int len = U._grid->oSites();
int me, myoff,mywork;
GridThread::GetWorkBarrier(len,me, mywork,myoff); GridThread::GetWorkBarrier(len,me, mywork,myoff);
int sF = LLs * myoff; int sF = LLs * myoff;
Kernels::DiracOptDhopSite(st,lo,U,st.CommBuf(),sF,myoff,LLs,mywork,in,out); Kernels::DiracOptDhopSite(st,lo,U,st.CommBuf(),sF,myoff,LLs,mywork,in,out);
}
} }
#endif #endif
} }