X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f26d744d3e443d08cb485b543f30513f7da3469..56b8ebe99bfcd666e373069b2072291ab5e04ee8:/src/smpi/colls/allgather-rhv.c diff --git a/src/smpi/colls/allgather-rhv.c b/src/smpi/colls/allgather-rhv.c index aceb283c20..8179aff371 100644 --- a/src/smpi/colls/allgather-rhv.c +++ b/src/smpi/colls/allgather-rhv.c @@ -21,6 +21,10 @@ smpi_coll_tuned_allgather_rhv(void *sbuf, int send_count, // get size of the communicator, followed by rank num_procs = smpi_comm_size(comm); + + if((num_procs&(num_procs-1))) + THROWF(arg_error,0, "allgather rhv algorithm can't be used with non power of two number of processes ! "); + rank = smpi_comm_rank(comm); // get size of single element's type for send buffer and recv buffer