X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fff5fbf696a8eaf8a7f230c4e15c763db690bcc3..6d18783f24e4c8477a9d331336580b8679471660:/teshsuite/smpi/isp/umpire/no-error-wait-any_src4.c diff --git a/teshsuite/smpi/isp/umpire/no-error-wait-any_src4.c b/teshsuite/smpi/isp/umpire/no-error-wait-any_src4.c index fd6b2a1cc9..52b39a135b 100644 --- a/teshsuite/smpi/isp/umpire/no-error-wait-any_src4.c +++ b/teshsuite/smpi/isp/umpire/no-error-wait-any_src4.c @@ -37,10 +37,10 @@ main (int argc, char **argv) } else if (rank == 0) { - MPI_Irecv (buf0, buf_size, MPI_INT, + MPI_Irecv (buf0, buf_size, MPI_INT, MPI_ANY_SOURCE, 0, MPI_COMM_WORLD, &reqs[0]); - MPI_Irecv (buf1, buf_size, MPI_INT, + MPI_Irecv (buf1, buf_size, MPI_INT, MPI_ANY_SOURCE, 0, MPI_COMM_WORLD, &reqs[1]); MPI_Waitall (2, reqs, statuses); @@ -49,7 +49,7 @@ main (int argc, char **argv) } else if (rank == 1) { - memset (buf0, 0, buf_size); + memset (buf0, 0, buf_size*sizeof(int)); MPI_Isend (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &reqs[0]); @@ -65,7 +65,7 @@ main (int argc, char **argv) } else if (rank == 2) { - //sleep (60); + //sleep (60); MPI_Recv (buf1, buf_size, MPI_INT, 1, 1, MPI_COMM_WORLD, statuses); }