From 1760afbe97acb1d8e18f56b74b3c7dbe83aca863 Mon Sep 17 00:00:00 2001 From: StefanoPetrilli Date: Sun, 1 May 2022 04:47:03 -0500 Subject: [PATCH] Time tracking in algoDistEdge --- ...DomEdgesLinearSearchMesgBndlSmallMateC.cpp | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/amgprec/impl/aggregator/algoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC.cpp b/amgprec/impl/aggregator/algoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC.cpp index 8be438b6..62e5112f 100644 --- a/amgprec/impl/aggregator/algoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC.cpp +++ b/amgprec/impl/aggregator/algoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC.cpp @@ -92,6 +92,21 @@ void dalgoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC( MilanReal* msgPercent, MilanReal* ph0_time, MilanReal* ph1_time, MilanReal* ph2_time, MilanLongInt* ph1_card, MilanLongInt* ph2_card ) { + + /* + * verDistance: it's a vector long as the number of processors. + * verDistance[i] contains the first node index of the i-th processor + * verDistance[i + 1] contains the last node index of the i-th processor + * NLVer: number of elements in the LocPtr + * NLEdge: number of edges assigned to the current processor + * + * Contains the portion of matrix assigned to the processor in + * Yale notation + * verLocInd: contains the positions on row of the matrix + * verLocPtr: i-th value is the position of the first element on the i-th row and + * i+1-th value is the position of the first element on the i+1-th row + */ + #if !defined(SERIAL_MPI) #ifdef PRINT_DEBUG_INFO_ cout<<"\n("< EndIndex) ) } //End of for(ghost vertices) + +#ifdef TIME_TRACKER + Ghost2LocalInitialization = MPI_Wtime() - Ghost2LocalInitialization; + fprintf(stderr, "Ghost2LocalInitialization time: %f\n", Ghost2LocalInitialization); +#endif + #ifdef PRINT_DEBUG_INFO_ cout<<"\n("<