diff --git a/ompi/mca/coll/tuned/coll_tuned_allgather.c b/ompi/mca/coll/tuned/coll_tuned_allgather.c index bf938e7cd0..71b78abc1b 100644 --- a/ompi/mca/coll/tuned/coll_tuned_allgather.c +++ b/ompi/mca/coll/tuned/coll_tuned_allgather.c @@ -172,7 +172,7 @@ int ompi_coll_tuned_allgather_intra_bruck(void *sbuf, int scount, err = ompi_datatype_get_true_extent(rdtype, &true_lb, &true_extent); if (MPI_SUCCESS != err) { line = __LINE__; goto err_hndl; } - free_buf = (char*) calloc(((true_extent + + free_buf = (char*) calloc(((true_extent + true_lb + ((size - rank) * rcount - 1) * rext)), sizeof(char)); if (NULL == free_buf) {