]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/gather-ompi.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
indent
[simgrid.git] / src / smpi / colls / gather-ompi.c
index 18f1d0882508f2f9d04e7269b2bf615c060a47d7..df34f27e1f32eec08d5b84bbc6cf18025829a086 100644 (file)
@@ -135,7 +135,7 @@ smpi_coll_tuned_gather_ompi_binomial(void *sbuf, int scount,
                         "smpi_coll_tuned_gather_ompi_binomial rank %d recv %d mycount = %d",
                         rank, bmtree->tree_next[i], mycount);
 
-           smpi_mpi_recv(ptmp + total_recv*rextent, rcount*size-total_recv, rdtype,
+           smpi_mpi_recv(ptmp + total_recv*rextent, mycount, rdtype,
                                    bmtree->tree_next[i], COLL_TAG_GATHER,
                                    comm, &status);
 
@@ -172,6 +172,7 @@ smpi_coll_tuned_gather_ompi_binomial(void *sbuf, int scount,
        /* other non-leaf nodes */
        free(tempbuf);
     }
+    xbt_free(bmtree);
     return MPI_SUCCESS;
 
  err_hndl: