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
/
barrier-ompi.cpp
diff --git
a/src/smpi/colls/barrier-ompi.cpp
b/src/smpi/colls/barrier-ompi.cpp
index
d61177d
..
3d9f943
100644
(file)
--- a/
src/smpi/colls/barrier-ompi.cpp
+++ b/
src/smpi/colls/barrier-ompi.cpp
@@
-50,8
+50,8
@@
int smpi_coll_tuned_barrier_ompi_doublering(MPI_Comm comm
int left, right;
int left, right;
- rank =
smpi_comm_rank(comm
);
- size =
smpi_comm_size(comm
);
+ rank =
comm->rank(
);
+ size =
comm->size(
);
XBT_DEBUG("ompi_coll_tuned_barrier_ompi_doublering rank %d", rank);
XBT_DEBUG("ompi_coll_tuned_barrier_ompi_doublering rank %d", rank);
@@
-110,8
+110,8
@@
int smpi_coll_tuned_barrier_ompi_recursivedoubling(MPI_Comm comm
int rank, size, adjsize;
int mask, remote;
int rank, size, adjsize;
int mask, remote;
- rank =
smpi_comm_rank(comm
);
- size =
smpi_comm_size(comm
);
+ rank =
comm->rank(
);
+ size =
comm->size(
);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_recursivedoubling rank %d",
rank);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_recursivedoubling rank %d",
rank);
@@
-185,8
+185,8
@@
int smpi_coll_tuned_barrier_ompi_bruck(MPI_Comm comm
int rank, size;
int distance, to, from;
int rank, size;
int distance, to, from;
- rank =
smpi_comm_rank(comm
);
- size =
smpi_comm_size(comm
);
+ rank =
comm->rank(
);
+ size =
comm->size(
);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_bruck rank %d", rank);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_bruck rank %d", rank);
@@
-217,7
+217,7
@@
int smpi_coll_tuned_barrier_ompi_two_procs(MPI_Comm comm
{
int remote;
{
int remote;
- remote =
smpi_comm_rank(comm
);
+ remote =
comm->rank(
);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_two_procs rank %d", remote);
remote = (remote + 1) & 0x1;
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_two_procs rank %d", remote);
remote = (remote + 1) & 0x1;
@@
-248,8
+248,8
@@
int smpi_coll_tuned_barrier_ompi_two_procs(MPI_Comm comm
int smpi_coll_tuned_barrier_ompi_basic_linear(MPI_Comm comm)
{
int i;
int smpi_coll_tuned_barrier_ompi_basic_linear(MPI_Comm comm)
{
int i;
- int size =
smpi_comm_size(comm
);
- int rank =
smpi_comm_rank(comm
);
+ int size =
comm->size(
);
+ int rank =
comm->rank(
);
/* All non-root send & receive zero-length message. */
/* All non-root send & receive zero-length message. */
@@
-302,8
+302,8
@@
int smpi_coll_tuned_barrier_ompi_tree(MPI_Comm comm)
int rank, size, depth;
int jump, partner;
int rank, size, depth;
int jump, partner;
- rank =
smpi_comm_rank(comm
);
- size =
smpi_comm_size(comm
);
+ rank =
comm->rank(
);
+ size =
comm->size(
);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_tree %d",
rank);
XBT_DEBUG(
"ompi_coll_tuned_barrier_ompi_tree %d",
rank);