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
same thing elsewhere
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
rma
/
rma-contig.c
diff --git
a/teshsuite/smpi/mpich3-test/rma/rma-contig.c
b/teshsuite/smpi/mpich3-test/rma/rma-contig.c
index
4ca7127
..
7cc14de
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/rma/rma-contig.c
+++ b/
teshsuite/smpi/mpich3-test/rma/rma-contig.c
@@
-20,7
+20,7
@@
static int rank;
static void run_test(int lock_mode, int lock_assert)
{
int nproc, test_iter, target_rank, data_size;
static void run_test(int lock_mode, int lock_assert)
{
int nproc, test_iter, target_rank, data_size;
-
int
*buf, *win_buf;
+
char
*buf, *win_buf;
MPI_Win win;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Win win;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
@@
-101,8
+101,8
@@
static void run_test(int lock_mode, int lock_assert)
t_acc = MPI_Wtime();
MPI_Win_lock(lock_mode, target_rank, lock_assert, win);
t_acc = MPI_Wtime();
MPI_Win_lock(lock_mode, target_rank, lock_assert, win);
- MPI_Accumulate(buf, data_size
/ sizeof(int), MPI_INT
, target_rank,
- 0, data_size
/ sizeof(int), MPI_INT
, MPI_SUM, win);
+ MPI_Accumulate(buf, data_size
, MPI_BYTE
, target_rank,
+ 0, data_size
, MPI_BYTE
, MPI_SUM, win);
MPI_Win_unlock(target_rank, win);
}
t_acc = (MPI_Wtime() - t_acc) / num_iter;
MPI_Win_unlock(target_rank, win);
}
t_acc = (MPI_Wtime() - t_acc) / num_iter;