Single parallel regions with multiple for cycles

Added OMP for testing
This commit is contained in:
StefanoPetrilli
2022-05-01 15:26:47 -05:00
parent 8f6dc5fac2
commit 0a8debe43a
4 changed files with 123 additions and 91 deletions
+2 -1
View File
@@ -66,6 +66,7 @@ void dMatchBoxPC(MilanLongInt NLVer, MilanLongInt NLEdge,
myRank,NLVer, NLEdge,verDistance[0],verDistance[1]);
#endif
#define TIME_TRACKER
#ifdef TIME_TRACKER
double tmr = MPI_Wtime();
#endif
@@ -80,7 +81,7 @@ void dMatchBoxPC(MilanLongInt NLVer, MilanLongInt NLEdge,
#ifdef TIME_TRACKER
tmr = MPI_Wtime() - tmr;
fprintf(stderr, "Elaboration time: %f\n", tmr);
fprintf(stderr, "Elaboration time: %f for $ld\n", tmr, NLEdge);
#endif
#endif