X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f26d744d3e443d08cb485b543f30513f7da3469..56b8ebe99bfcd666e373069b2072291ab5e04ee8:/src/smpi/colls/allgather-smp-simple.c diff --git a/src/smpi/colls/allgather-smp-simple.c b/src/smpi/colls/allgather-smp-simple.c index 143887052e..f1c25d0428 100644 --- a/src/smpi/colls/allgather-smp-simple.c +++ b/src/smpi/colls/allgather-smp-simple.c @@ -10,6 +10,10 @@ int smpi_coll_tuned_allgather_smp_simple(void *send_buf, int scount, { int src, dst, comm_size, rank; comm_size = smpi_comm_size(comm); + + if(comm_size%NUM_CORE) + THROWF(arg_error,0, "allgather SMP simple algorithm can't be used with non multiple of NUM_CORE=%d number of processes ! ", NUM_CORE); + rank = smpi_comm_rank(comm); MPI_Aint rextent, sextent; rextent = smpi_datatype_get_extent(rtype);