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
MPI_Comm -> C++
[simgrid.git]
/
src
/
smpi
/
colls
/
allreduce-smp-rdb.cpp
diff --git
a/src/smpi/colls/allreduce-smp-rdb.cpp
b/src/smpi/colls/allreduce-smp-rdb.cpp
index
9770d29
..
b95bf7f
100644
(file)
--- a/
src/smpi/colls/allreduce-smp-rdb.cpp
+++ b/
src/smpi/colls/allreduce-smp-rdb.cpp
@@
-35,12
+35,12
@@
int smpi_coll_tuned_allreduce_smp_rdb(void *send_buf, void *recv_buf, int count,
int tag = COLL_TAG_ALLREDUCE;
int mask, src, dst;
MPI_Status status;
int tag = COLL_TAG_ALLREDUCE;
int mask, src, dst;
MPI_Status status;
- if(
smpi_comm_get_leaders_comm(comm
)==MPI_COMM_NULL){
-
smpi_comm_init_smp(comm
);
+ if(
comm->get_leaders_comm(
)==MPI_COMM_NULL){
+
comm->init_smp(
);
}
int num_core=1;
}
int num_core=1;
- if (
smpi_comm_is_uniform(comm
)){
- num_core =
smpi_comm_size(smpi_comm_get_intra_comm(comm)
);
+ if (
comm->is_uniform(
)){
+ num_core =
comm->get_intra_comm()->size(
);
}
/*
#ifdef MPICH2_REDUCTION
}
/*
#ifdef MPICH2_REDUCTION
@@
-52,8
+52,8
@@
int smpi_coll_tuned_allreduce_smp_rdb(void *send_buf, void *recv_buf, int count,
uop = op_ptr->op;
#endif
*/
uop = op_ptr->op;
#endif
*/
- comm_size =
smpi_comm_size(comm
);
- rank =
smpi_comm_rank(comm
);
+ comm_size =
comm->size(
);
+ rank =
comm->rank(
);
MPI_Aint extent;
extent = smpi_datatype_get_extent(dtype);
tmp_buf = (void *) smpi_get_tmp_sendbuffer(count * extent);
MPI_Aint extent;
extent = smpi_datatype_get_extent(dtype);
tmp_buf = (void *) smpi_get_tmp_sendbuffer(count * extent);