*/
namespace simgrid{
namespace smpi{
-int Coll_allreduce_smp_rsag_rab::allreduce(const void *sbuf, void *rbuf, int count,
- MPI_Datatype dtype, MPI_Op op,
- MPI_Comm comm)
+int allreduce__smp_rsag_rab(const void *sbuf, void *rbuf, int count,
+ MPI_Datatype dtype, MPI_Op op,
+ MPI_Comm comm)
{
int comm_size, rank;
int tag = COLL_TAG_ALLREDUCE;
comm_size = comm->size();
if((comm_size&(comm_size-1)))
- THROWF(arg_error,0, "allreduce smp rsag rab algorithm can't be used with non power of two number of processes ! ");
+ throw std::invalid_argument(
+ "allreduce smp rsag rab algorithm can't be used with non power of two number of processes!");
rank = comm->rank();
MPI_Aint extent;