X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/40616078da72e823931c1fb884949054699ec39d..5f1dc33c9f76ee99973ba93f034f031451398ebe:/src/smpi/colls/allgather/allgather-loosely-lr.cpp?ds=inline diff --git a/src/smpi/colls/allgather/allgather-loosely-lr.cpp b/src/smpi/colls/allgather/allgather-loosely-lr.cpp index 1d31885092..ddb11c298d 100644 --- a/src/smpi/colls/allgather/allgather-loosely-lr.cpp +++ b/src/smpi/colls/allgather/allgather-loosely-lr.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,11 @@ #include "../colls_private.h" -int smpi_coll_tuned_allgather_loosely_lr(void *sbuf, int scount, +namespace simgrid{ +namespace smpi{ + + +int Coll_allgather_loosely_lr::allgather(void *sbuf, int scount, MPI_Datatype stype, void *rbuf, int rcount, MPI_Datatype rtype, MPI_Comm comm) @@ -88,10 +92,9 @@ if(comm->get_leaders_comm()==MPI_COMM_NULL){ if (intra_rank == j) { if (i != inter_comm_size - 1) { - inter_rrequest = Request::irecv((char *)rbuf + inter_recv_offset, rcount, rtype, - inter_src, tag, comm); - inter_srequest_array[inter_srequest_count++] = Request::isend((char *)rbuf + inter_send_offset, scount, stype, - inter_dst, tag, comm); + inter_rrequest = Request::irecv((char*)rbuf + inter_recv_offset, rcount, rtype, inter_src, tag, comm); + inter_srequest_array[inter_srequest_count++] = + Request::isend((char*)rbuf + inter_send_offset, scount, stype, inter_dst, tag, comm); } } //intra_communication @@ -131,3 +134,7 @@ if(comm->get_leaders_comm()==MPI_COMM_NULL){ return MPI_SUCCESS; } + + +} +}