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-mvapich-rs.cpp
diff --git
a/src/smpi/colls/allreduce-mvapich-rs.cpp
b/src/smpi/colls/allreduce-mvapich-rs.cpp
index
177b545
..
3bc2d5b
100644
(file)
--- a/
src/smpi/colls/allreduce-mvapich-rs.cpp
+++ b/
src/smpi/colls/allreduce-mvapich-rs.cpp
@@
-79,7
+79,7
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
if (rank < 2 * rem) {
if (rank % 2 == 0) {
/* even */
if (rank < 2 * rem) {
if (rank % 2 == 0) {
/* even */
-
smpi_mpi_
send(recvbuf, count, datatype, rank + 1,
+
Request::
send(recvbuf, count, datatype, rank + 1,
COLL_TAG_ALLREDUCE, comm);
/* temporarily set the rank to -1 so that this
COLL_TAG_ALLREDUCE, comm);
/* temporarily set the rank to -1 so that this
@@
-88,7
+88,7
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
newrank = -1;
} else {
/* odd */
newrank = -1;
} else {
/* odd */
-
smpi_mpi_
recv(tmp_buf, count, datatype, rank - 1,
+
Request::
recv(tmp_buf, count, datatype, rank - 1,
COLL_TAG_ALLREDUCE, comm,
MPI_STATUS_IGNORE);
/* do the reduction on received data. since the
COLL_TAG_ALLREDUCE, comm,
MPI_STATUS_IGNORE);
/* do the reduction on received data. since the
@@
-121,7
+121,7
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
/* Send the most current data, which is in recvbuf. Recv
into tmp_buf */
/* Send the most current data, which is in recvbuf. Recv
into tmp_buf */
-
smpi_mpi_
sendrecv(recvbuf, count, datatype,
+
Request::
sendrecv(recvbuf, count, datatype,
dst, COLL_TAG_ALLREDUCE,
tmp_buf, count, datatype, dst,
COLL_TAG_ALLREDUCE, comm,
dst, COLL_TAG_ALLREDUCE,
tmp_buf, count, datatype, dst,
COLL_TAG_ALLREDUCE, comm,
@@
-186,7
+186,7
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
}
/* Send data from recvbuf. Recv into tmp_buf */
}
/* Send data from recvbuf. Recv into tmp_buf */
-
smpi_mpi_
sendrecv((char *) recvbuf +
+
Request::
sendrecv((char *) recvbuf +
disps[send_idx] * extent,
send_cnt, datatype,
dst, COLL_TAG_ALLREDUCE,
disps[send_idx] * extent,
send_cnt, datatype,
dst, COLL_TAG_ALLREDUCE,
@@
-249,7
+249,7
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
}
}
}
}
-
smpi_mpi_
sendrecv((char *) recvbuf +
+
Request::
sendrecv((char *) recvbuf +
disps[send_idx] * extent,
send_cnt, datatype,
dst, COLL_TAG_ALLREDUCE,
disps[send_idx] * extent,
send_cnt, datatype,
dst, COLL_TAG_ALLREDUCE,
@@
-274,11
+274,11
@@
int smpi_coll_tuned_allreduce_mvapich2_rs(void *sendbuf,
(rank-1), the ranks who didn't participate above. */
if (rank < 2 * rem) {
if (rank % 2) { /* odd */
(rank-1), the ranks who didn't participate above. */
if (rank < 2 * rem) {
if (rank % 2) { /* odd */
-
smpi_mpi_
send(recvbuf, count,
+
Request::
send(recvbuf, count,
datatype, rank - 1,
COLL_TAG_ALLREDUCE, comm);
} else { /* even */
datatype, rank - 1,
COLL_TAG_ALLREDUCE, comm);
} else { /* even */
-
smpi_mpi_
recv(recvbuf, count,
+
Request::
recv(recvbuf, count,
datatype, rank + 1,
COLL_TAG_ALLREDUCE, comm,
MPI_STATUS_IGNORE);
datatype, rank + 1,
COLL_TAG_ALLREDUCE, comm,
MPI_STATUS_IGNORE);