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
welcome simgrid::smpi::Request
[simgrid.git]
/
src
/
smpi
/
colls
/
allreduce-lr.cpp
diff --git
a/src/smpi/colls/allreduce-lr.cpp
b/src/smpi/colls/allreduce-lr.cpp
index
61ef576
..
af35d43
100644
(file)
--- a/
src/smpi/colls/allreduce-lr.cpp
+++ b/
src/smpi/colls/allreduce-lr.cpp
@@
-67,7
+67,7
@@
smpi_coll_tuned_allreduce_lr(void *sbuf, void *rbuf, int rcount,
// copy partial data
send_offset = ((rank - 1 + size) % size) * count * extent;
recv_offset = ((rank - 1 + size) % size) * count * extent;
// copy partial data
send_offset = ((rank - 1 + size) % size) * count * extent;
recv_offset = ((rank - 1 + size) % size) * count * extent;
-
smpi_mpi_
sendrecv((char *) sbuf + send_offset, count, dtype, rank, tag - 1,
+
Request::
sendrecv((char *) sbuf + send_offset, count, dtype, rank, tag - 1,
(char *) rbuf + recv_offset, count, dtype, rank, tag - 1, comm,
&status);
(char *) rbuf + recv_offset, count, dtype, rank, tag - 1, comm,
&status);
@@
-76,7
+76,7
@@
smpi_coll_tuned_allreduce_lr(void *sbuf, void *rbuf, int rcount,
send_offset = ((rank - 1 - i + 2 * size) % size) * count * extent;
recv_offset = ((rank - 2 - i + 2 * size) % size) * count * extent;
// recv_offset = ((rank-i+2*size)%size)*count*extent;
send_offset = ((rank - 1 - i + 2 * size) % size) * count * extent;
recv_offset = ((rank - 2 - i + 2 * size) % size) * count * extent;
// recv_offset = ((rank-i+2*size)%size)*count*extent;
-
smpi_mpi_
sendrecv((char *) rbuf + send_offset, count, dtype, ((rank + 1) % size),
+
Request::
sendrecv((char *) rbuf + send_offset, count, dtype, ((rank + 1) % size),
tag + i, (char *) rbuf + recv_offset, count, dtype,
((rank + size - 1) % size), tag + i, comm, &status);
tag + i, (char *) rbuf + recv_offset, count, dtype,
((rank + size - 1) % size), tag + i, comm, &status);
@@
-89,7
+89,7
@@
smpi_coll_tuned_allreduce_lr(void *sbuf, void *rbuf, int rcount,
for (i = 0; i < (size - 1); i++) {
send_offset = ((rank - i + 2 * size) % size) * count * extent;
recv_offset = ((rank - 1 - i + 2 * size) % size) * count * extent;
for (i = 0; i < (size - 1); i++) {
send_offset = ((rank - i + 2 * size) % size) * count * extent;
recv_offset = ((rank - 1 - i + 2 * size) % size) * count * extent;
-
smpi_mpi_
sendrecv((char *) rbuf + send_offset, count, dtype, ((rank + 1) % size),
+
Request::
sendrecv((char *) rbuf + send_offset, count, dtype, ((rank + 1) % size),
tag + i, (char *) rbuf + recv_offset, count, dtype,
((rank + size - 1) % size), tag + i, comm, &status);
}
tag + i, (char *) rbuf + recv_offset, count, dtype,
((rank + size - 1) % size), tag + i, comm, &status);
}