From 2fefd3a928e38b7c99820ac480c47e6daf5ebc45 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 11 Oct 2011 20:15:49 +0000 Subject: [PATCH] Don't forget to move the pointer back by the true_lb. This commit was SVN r25262. --- ompi/mca/coll/tuned/coll_tuned_allgather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {