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

View File

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