X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..e3771caa277bcafe6b67c9bfaf18ab8ee70001a7:/src/smpi/colls/allgather/allgather-loosely-lr.cpp diff --git a/src/smpi/colls/allgather/allgather-loosely-lr.cpp b/src/smpi/colls/allgather/allgather-loosely-lr.cpp index 575356ad66..5596db8867 100644 --- a/src/smpi/colls/allgather/allgather-loosely-lr.cpp +++ b/src/smpi/colls/allgather/allgather-loosely-lr.cpp @@ -10,7 +10,7 @@ namespace simgrid{ namespace smpi{ -int Coll_allgather_loosely_lr::allgather(void *sbuf, int scount, +int Coll_allgather_loosely_lr::allgather(const void *sbuf, int scount, MPI_Datatype stype, void *rbuf, int rcount, MPI_Datatype rtype, MPI_Comm comm) @@ -32,7 +32,9 @@ if(comm->get_leaders_comm()==MPI_COMM_NULL){ } if(comm_size%num_core) - THROWF(arg_error,0, "allgather loosely lr algorithm can't be used with non multiple of NUM_CORE=%d number of processes ! ",num_core); + throw std::invalid_argument(xbt::string_printf( + "allgather loosely lr algorithm can't be used with non multiple of NUM_CORE=%d number of processes!", + num_core)); rank = comm->rank(); MPI_Aint rextent, sextent;