A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiply memset size by size of element in umpire.
[simgrid.git]
/
teshsuite
/
smpi
/
isp
/
umpire
/
no-error-test.c
diff --git
a/teshsuite/smpi/isp/umpire/no-error-test.c
b/teshsuite/smpi/isp/umpire/no-error-test.c
index
7a87685
..
8622177
100644
(file)
--- a/
teshsuite/smpi/isp/umpire/no-error-test.c
+++ b/
teshsuite/smpi/isp/umpire/no-error-test.c
@@
-19,7
+19,6
@@
main (int argc, char **argv)
int flag = 0;
MPI_Status status;
MPI_Request req;
int flag = 0;
MPI_Status status;
MPI_Request req;
- int i;
/* init */
MPI_Init (&argc, &argv);
MPI_Comm_size (MPI_COMM_WORLD, &nprocs);
/* init */
MPI_Init (&argc, &argv);
MPI_Comm_size (MPI_COMM_WORLD, &nprocs);
@@
-36,7
+35,7
@@
main (int argc, char **argv)
}
else if (rank == 0)
{
}
else if (rank == 0)
{
- memset (buf0, 0, buf_size);
+ memset (buf0, 0, buf_size
*sizeof(int)
);
MPI_Irecv (buf1, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD, &req);
MPI_Irecv (buf1, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD, &req);
@@
-47,7
+46,7
@@
main (int argc, char **argv)
}
else if (rank == 1)
{
}
else if (rank == 1)
{
- memset (buf1, 1, buf_size);
+ memset (buf1, 1, buf_size
*sizeof(int)
);
MPI_Irecv (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &req);
MPI_Irecv (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &req);