From: Augustin Degomme Date: Tue, 25 Jun 2013 11:17:49 +0000 (+0200) Subject: mpich allgatherv was using wrong size value X-Git-Tag: v3_9_90~227 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dcc48b1305e2d90001e3ba52b4b426a0ba40da66 mpich allgatherv was using wrong size value --- diff --git a/src/smpi/colls/smpi_mpich_selector.c b/src/smpi/colls/smpi_mpich_selector.c index c81e2f2908..3781e34d65 100644 --- a/src/smpi/colls/smpi_mpich_selector.c +++ b/src/smpi/colls/smpi_mpich_selector.c @@ -595,7 +595,7 @@ int smpi_coll_tuned_allgatherv_mpich(void *sbuf, int scount, MPI_Comm comm ) { - int communicator_size, pow2_size; + int communicator_size, pow2_size,i; size_t dsize, total_dsize; communicator_size = smpi_comm_size(comm); @@ -603,7 +603,12 @@ int smpi_coll_tuned_allgatherv_mpich(void *sbuf, int scount, /* Determine complete data size */ dsize=smpi_datatype_size(sdtype); total_dsize = dsize * scount * communicator_size; - + + total_dsize = 0; + for (i=0; i