X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eb5b6b0c3c4d9a38bb205b2c8bc9aeeba8674a25..ba9a4cfeba4eb00e84cd17603fc9654e81445655:/teshsuite/smpi/mpich3-test/pt2pt/sendall.c?ds=sidebyside diff --git a/teshsuite/smpi/mpich3-test/pt2pt/sendall.c b/teshsuite/smpi/mpich3-test/pt2pt/sendall.c index d344e24f61..2f87e47eb0 100644 --- a/teshsuite/smpi/mpich3-test/pt2pt/sendall.c +++ b/teshsuite/smpi/mpich3-test/pt2pt/sendall.c @@ -28,6 +28,7 @@ int main ( int argc, char *argv[] ) int i; int count, size; int self, npes; + double secs; MPI_Request request[MAXPES]; MPI_Status status; @@ -43,6 +44,7 @@ int main ( int argc, char *argv[] ) } for (size = 1; size <= MYBUFSIZE ; size += size) { + secs = -MPI_Wtime (); for (count = 0; count < NUM_RUNS; count++) { MPI_Barrier (MPI_COMM_WORLD); @@ -64,8 +66,10 @@ int main ( int argc, char *argv[] ) } MPI_Barrier (MPI_COMM_WORLD); + secs += MPI_Wtime (); if (self == 0) { + secs = secs / (double) NUM_RUNS; MTestPrintfMsg( 1, "length = %d ints\n", size ); } }