add barrier
This commit is contained in:
parent
0e089bb00a
commit
f6a092bcd2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user