From 60f90804d53304d270237ff66f476cdec82c91da Mon Sep 17 00:00:00 2001 From: StefanoPetrilli Date: Sun, 1 May 2022 04:42:33 -0500 Subject: [PATCH] Time tracking in MatchBox --- amgprec/impl/aggregator/MatchBoxPC.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/amgprec/impl/aggregator/MatchBoxPC.cpp b/amgprec/impl/aggregator/MatchBoxPC.cpp index c1ec0976..8eb4af08 100644 --- a/amgprec/impl/aggregator/MatchBoxPC.cpp +++ b/amgprec/impl/aggregator/MatchBoxPC.cpp @@ -64,6 +64,13 @@ void dMatchBoxPC(MilanLongInt NLVer, MilanLongInt NLEdge, fprintf(stderr,"MatchBoxPC: rank %d nlver %ld nledge %ld [ %ld %ld ]\n", myRank,NLVer, NLEdge,verDistance[0],verDistance[1]); #endif + +#ifdef #IE + + #ifdef TIME_TRACKER + double tmr = MPI_Wtime(); + #endif + dalgoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC(NLVer, NLEdge, verLocPtr, verLocInd, edgeLocWeight, verDistance, Mate, @@ -71,6 +78,12 @@ void dMatchBoxPC(MilanLongInt NLVer, MilanLongInt NLEdge, msgIndSent, msgActualSent, msgPercent, ph0_time, ph1_time, ph2_time, ph1_card, ph2_card ); + + #ifdef TIME_TRACKER + tmr = MPI_Wtime() - tmr; + fprintf(stderr, "Elaboration time: %f\n", tmr); + #endif + #endif }