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-waitall-any_src.c
diff --git
a/teshsuite/smpi/isp/umpire/no-error-waitall-any_src.c
b/teshsuite/smpi/isp/umpire/no-error-waitall-any_src.c
index
2c7f144
..
d3125b3
100644
(file)
--- a/
teshsuite/smpi/isp/umpire/no-error-waitall-any_src.c
+++ b/
teshsuite/smpi/isp/umpire/no-error-waitall-any_src.c
@@
-57,7
+57,7
@@
main (int argc, char **argv)
}
else if (rank == 1)
{
}
else if (rank == 1)
{
- memset (buf0, 0, buf_size);
+ memset (buf0, 0, buf_size
*sizeof(int)
);
MPI_Send (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD);
MPI_Send (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD);
@@
-65,7
+65,7
@@
main (int argc, char **argv)
}
else if (rank == 2)
{
}
else if (rank == 2)
{
- memset (buf1, 1, buf_size);
+ memset (buf1, 1, buf_size
*sizeof(int)
);
MPI_Send (buf1, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD);
MPI_Send (buf1, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD);