X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ca2e418072d73461d9c4f1e39e77c9f7380eb3fd..29aa074252888a50d97e3069f51ffb8e6cf99101:/src/smpi/colls/reduce-flat-tree.cpp diff --git a/src/smpi/colls/reduce-flat-tree.cpp b/src/smpi/colls/reduce-flat-tree.cpp index a12009c131..b4c3635b32 100644 --- a/src/smpi/colls/reduce-flat-tree.cpp +++ b/src/smpi/colls/reduce-flat-tree.cpp @@ -27,7 +27,7 @@ smpi_coll_tuned_reduce_flat_tree(void *sbuf, void *rbuf, int count, extent = smpi_datatype_get_extent(dtype); if (rank != root) { - smpi_mpi_send(sbuf, count, dtype, root, tag, comm); + Request::send(sbuf, count, dtype, root, tag, comm); return 0; } @@ -40,10 +40,10 @@ smpi_coll_tuned_reduce_flat_tree(void *sbuf, void *rbuf, int count, /* Initialize the receive buffer. */ if (rank == (size - 1)) - smpi_mpi_sendrecv(sbuf, count, dtype, rank, tag, + Request::sendrecv(sbuf, count, dtype, rank, tag, rbuf, count, dtype, rank, tag, comm, &status); else - smpi_mpi_recv(rbuf, count, dtype, size - 1, tag, comm, &status); + Request::recv(rbuf, count, dtype, size - 1, tag, comm, &status); /* Loop receiving and calling reduction function (C or Fortran). */ @@ -51,12 +51,12 @@ smpi_coll_tuned_reduce_flat_tree(void *sbuf, void *rbuf, int count, if (rank == i) inbuf = static_cast(sbuf); else { - smpi_mpi_recv(origin, count, dtype, i, tag, comm, &status); + Request::recv(origin, count, dtype, i, tag, comm, &status); inbuf = origin; } /* Call reduction function. */ - smpi_op_apply(op, inbuf, rbuf, &count, &dtype); + if(op!=MPI_OP_NULL) op->apply( inbuf, rbuf, &count, dtype); }