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
(painfully) constify colls.
[simgrid.git]
/
src
/
smpi
/
colls
/
reduce
/
reduce-flat-tree.cpp
diff --git
a/src/smpi/colls/reduce/reduce-flat-tree.cpp
b/src/smpi/colls/reduce/reduce-flat-tree.cpp
index
46b0496
..
ef3ae9c
100644
(file)
--- a/
src/smpi/colls/reduce/reduce-flat-tree.cpp
+++ b/
src/smpi/colls/reduce/reduce-flat-tree.cpp
@@
-9,7
+9,7
@@
namespace simgrid{
namespace smpi{
int
namespace simgrid{
namespace smpi{
int
-Coll_reduce_flat_tree::reduce(void *sbuf, void *rbuf, int count,
+Coll_reduce_flat_tree::reduce(
const
void *sbuf, void *rbuf, int count,
MPI_Datatype dtype, MPI_Op op,
int root, MPI_Comm comm)
{
MPI_Datatype dtype, MPI_Op op,
int root, MPI_Comm comm)
{
@@
-18,7
+18,7
@@
Coll_reduce_flat_tree::reduce(void *sbuf, void *rbuf, int count,
int rank;
MPI_Aint extent;
char *origin = 0;
int rank;
MPI_Aint extent;
char *origin = 0;
- char *inbuf;
+ c
onst c
har *inbuf;
MPI_Status status;
rank = comm->rank();
MPI_Status status;
rank = comm->rank();
@@
-50,7
+50,7
@@
Coll_reduce_flat_tree::reduce(void *sbuf, void *rbuf, int count,
for (i = size - 2; i >= 0; --i) {
if (rank == i)
for (i = size - 2; i >= 0; --i) {
if (rank == i)
- inbuf = static_cast<char*>(sbuf);
+ inbuf = static_cast<c
onst c
har*>(sbuf);
else {
Request::recv(origin, count, dtype, i, tag, comm, &status);
inbuf = origin;
else {
Request::recv(origin, count, dtype, i, tag, comm, &status);
inbuf = origin;