Basic HTML version of Foils prepared 19 September 98

Foil 80 The MPI Timer

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


1 The elapsed (wall-clock) time between two points in an MPI program can be computed using MPI_Wtime:
  • double t1, t2;
  • t1 = MPI_Wtime ( );
  • . . .
  • t2 = MPI_Wtime ( );
  • printf ("Elapsed time is %f \n", t2-t1 );
2 The times are local; the attribute MPI_WTIME_IS_GLOBAL may be used to determine if the times are also synchronized with each other for all processes in MPI_COMM_WORLD.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999