Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
speeling mistakes in teshsuite (even mpich tests because why not)
[simgrid.git] / teshsuite / smpi / isp / umpire / irecv-deadlock.c
index a4ab3d0..d9a51a1 100644 (file)
@@ -36,7 +36,7 @@ main (int argc, char **argv)
     {
       int dest = (rank == nprocs - 1) ? (0) : (rank + 1);
       int src = (rank == 0) ? (nprocs - 1) : (rank - 1);
-      memset (buf0, rank, buf_size);
+      memset (buf0, rank, buf_size*sizeof(int));
       MPI_Irecv (buf0, buf_size, MPI_INT, src, 0, MPI_COMM_WORLD, &req);
       MPI_Wait(&req,&status);
       MPI_Send (buf0, buf_size, MPI_INT, dest, 0, MPI_COMM_WORLD);