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-error2.c
diff --git
a/teshsuite/smpi/isp/umpire/no-error2.c
b/teshsuite/smpi/isp/umpire/no-error2.c
index
659c1c2
..
a323019
100644
(file)
--- a/
teshsuite/smpi/isp/umpire/no-error2.c
+++ b/
teshsuite/smpi/isp/umpire/no-error2.c
@@
-31,17
+31,17
@@
main (int argc, char **argv)
src = (rank + 1) % nprocs;
dest = (rank - 1 + nprocs) % nprocs;
src = (rank + 1) % nprocs;
dest = (rank - 1 + nprocs) % nprocs;
- memset (buf0, 0, buf_size);
+ memset (buf0, 0, buf_size
*sizeof(int)
);
MPI_Sendrecv (buf0, buf_size, MPI_INT, dest, 0,
buf1, buf_size, MPI_INT, src, 0, MPI_COMM_WORLD, &status);
MPI_Sendrecv (buf0, buf_size, MPI_INT, dest, 0,
buf1, buf_size, MPI_INT, src, 0, MPI_COMM_WORLD, &status);
- memset (buf1, 1, buf_size);
+ memset (buf1, 1, buf_size
*sizeof(int)
);
MPI_Sendrecv (buf1, buf_size, MPI_INT, src, 0,
buf0, buf_size, MPI_INT, dest, 0, MPI_COMM_WORLD, &status);
MPI_Sendrecv (buf1, buf_size, MPI_INT, src, 0,
buf0, buf_size, MPI_INT, dest, 0, MPI_COMM_WORLD, &status);
- memset (buf0, 0, buf_size);
+ memset (buf0, 0, buf_size
*sizeof(int)
);
MPI_Sendrecv (buf0, buf_size, MPI_INT, dest, 0,
buf1, buf_size, MPI_INT, src, 0, MPI_COMM_WORLD, &status);
MPI_Sendrecv (buf0, buf_size, MPI_INT, dest, 0,
buf1, buf_size, MPI_INT, src, 0, MPI_COMM_WORLD, &status);