Skip to content

Commit

Permalink
Update location of #endif after enabling debug. #pragma omp simd not …
Browse files Browse the repository at this point in the history
…needed for debug statements. Move debug statements to own loop.
  • Loading branch information
gartung committed May 16, 2022
1 parent 468b476 commit c388ab3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions RecoTracker/MkFitCore/src/PropagationMPlex.icc
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
phiin[n - nmin] = inPar(n, 4, 0);
theta[n - nmin] = inPar(n, 5, 0);

dprint(std::endl);
//dprint(std::endl);
}
#pragma omp simd

for (int n = nmin; n < nmax; ++n) {
dprint_np(n,
"input parameters"
Expand Down Expand Up @@ -117,7 +117,7 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
pxin[n - nmin] = cosPorT[n - nmin] * pt[n - nmin];
pyin[n - nmin] = sinPorT[n - nmin] * pt[n - nmin];
}
#pragma omp simd

for (int n = nmin; n < nmax; ++n) {
dprint_np(n,
"k=" << std::setprecision(9) << k[n - nmin] << " pxin=" << std::setprecision(9) << pxin[n - nmin]
Expand Down Expand Up @@ -223,7 +223,7 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
sina[n - nmin] = 2.f * sinah[n - nmin] * cosah[n - nmin];
}

#pragma omp simd

for (int n = nmin; n < nmax; ++n) {
dprint_np(n,
"Attempt propagation from r="
Expand Down Expand Up @@ -310,7 +310,8 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
pxinold[n - nmin] = pxin[n - nmin]; //copy before overwriting
pxin[n - nmin] = pxin[n - nmin] * cosa[n - nmin] - pyin[n - nmin] * sina[n - nmin];
pyin[n - nmin] = pyin[n - nmin] * cosa[n - nmin] + pxinold[n - nmin] * sina[n - nmin];

}
for (int n = nmin; n < nmax; ++n) {
dprint_np(n,
"outPar(n, 0, 0)=" << outPar(n, 0, 0) << " outPar(n, 1, 0)=" << outPar(n, 1, 0)
<< " pxin=" << pxin[n - nmin] << " pyin=" << pyin[n - nmin]);
Expand Down Expand Up @@ -446,7 +447,6 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
errorProp(n, 5, 5) = 1.f;
}

#pragma omp simd
for (int n = nmin; n < nmax; ++n) {
dprint_np(n,
"propagation end, dump parameters"
Expand All @@ -459,7 +459,6 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
}

#ifdef DEBUG
#pragma omp simd
for (int n = nmin; n < nmax; ++n) {
if (n < N_proc) {
dmutex_guard;
Expand Down Expand Up @@ -508,5 +507,7 @@ static inline void helixAtRFromIterativeCCS_impl(const Tf& __restrict__ inPar,
errorProp(n, 5, 5));
printf("\n");
}
#endif
}
#endif

}

0 comments on commit c388ab3

Please sign in to comment.