add barrier

This commit is contained in:
Raffaele Mignone 2021-03-29 18:08:23 +02:00
parent 0e089bb00a
commit f6a092bcd2
Signed by: norangebit
GPG Key ID: F5255658CB220573
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ int main(int argc, char **argv) {
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Barrier(MPI_COMM_WORLD);
#ifdef TIME
long_long start_time = PAPI_get_real_usec();
#endif