X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea36b2b910912e1dde261d40a7b811a207ddeae1..ec3e4ee5f1a7ffeb96e044057809944f364014e6:/src/smpi/colls/bcast-mvapich-smp.c diff --git a/src/smpi/colls/bcast-mvapich-smp.c b/src/smpi/colls/bcast-mvapich-smp.c index d40f2db9e1..8dd8594063 100644 --- a/src/smpi/colls/bcast-mvapich-smp.c +++ b/src/smpi/colls/bcast-mvapich-smp.c @@ -294,9 +294,9 @@ int smpi_coll_tuned_bcast_mvapich2_intra_node(void *buffer, * heterogeneous systems. We want to use MPI_Type_size() wherever * possible, and MPI_Pack_size() in other places. */ - if (is_homogeneous) { + //if (is_homogeneous) { type_size=smpi_datatype_size(datatype); - } /*else {*/ + //} /*else {*/ /* MPIR_Pack_size_impl(1, datatype, &type_size);*/ /* }*/ nbytes = (size_t) (count) * (type_size); @@ -308,14 +308,14 @@ int smpi_coll_tuned_bcast_mvapich2_intra_node(void *buffer, } } - if ((two_level_bcast == 1 + if (two_level_bcast == 1 #if defined(_MCST_SUPPORT_) || comm_ptr->ch.is_mcast_ok #endif - )) { + ) { if (!is_contig || !is_homogeneous) { - tmp_buf=(void *)xbt_malloc(nbytes); + tmp_buf=(void *)smpi_get_tmp_sendbuffer(nbytes); /* TODO: Pipeline the packing and communication */ // position = 0;