From ecb5ccf6ff88fecc535079064445de53fb4369e3 Mon Sep 17 00:00:00 2001 From: Rafael Ravedutti Date: Wed, 30 Jun 2021 13:44:02 +0200 Subject: [PATCH] Adjust likwid markers for force region Signed-off-by: Rafael Ravedutti --- src/force.c | 2 ++ src/main-stub.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/force.c b/src/force.c index 0347713..6756c5d 100644 --- a/src/force.c +++ b/src/force.c @@ -59,6 +59,7 @@ double computeForce(Parameter *param, Atom *atom, Neighbor *neighbor, int first_ fz[i] = 0.0; } + LIKWID_MARKER_START("force"); #pragma omp parallel for for(int i = 0; i < Nlocal; i++) { neighs = &neighbor->neighbors[i * neighbor->maxneighs]; @@ -131,6 +132,7 @@ double computeForce(Parameter *param, Atom *atom, Neighbor *neighbor, int first_ TRACER_PRINT(fz[i], 'R'); TRACER_PRINT(fz[i], 'W'); } + LIKWID_MARKER_STOP("force"); double E = getTimeStamp(); TRACER_END; diff --git a/src/main-stub.c b/src/main-stub.c index c577f6a..8d3a8c0 100644 --- a/src/main-stub.c +++ b/src/main-stub.c @@ -211,11 +211,9 @@ int main(int argc, const char *argv[]) { double S, E; S = getTimeStamp(); - LIKWID_MARKER_START("force"); for(int i = 0; i < param.ntimes; i++) { computeForce(¶m, atom, &neighbor, 0); } - LIKWID_MARKER_STOP("force"); E = getTimeStamp(); double T_accum = E-S; const double atoms_updates_per_sec = (double)(atom->Nlocal) / T_accum * (double)(param.ntimes * NEIGHBORS_LOOP_RUNS);