1 /* Copyright (c) 2009. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
11 int main(int argc, char **argv)
18 MPI_Init(&argc, &argv);
19 MPI_Comm_size(MPI_COMM_WORLD, &size);
20 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
22 start_timer = MPI_Wtime();
24 MPI_Barrier(MPI_COMM_WORLD);
26 MPI_Barrier(MPI_COMM_WORLD);
28 printf("... Barrier ....\n");
29 printf("Elapsed=%lf s\n", MPI_Wtime() - start_timer);