Skip to content

Commit df32d13

Browse files
committed
Fix size of allocation in ompi_coll_base_allgatherv_intra_bruck
This was a fragment of a previous change that got only partially rolled back. Signed-off-by: Joseph Schuchart <[email protected]>
1 parent cf181fd commit df32d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/coll/base/coll_base_allgatherv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int ompi_coll_base_allgatherv_intra_bruck(const void *sbuf, size_t scount,
143143
blockcount = 1;
144144
tmpsend = (char*) rbuf;
145145

146-
new_rcounts = (size_t*) calloc(2*size, sizeof(size_t));
146+
new_rcounts = (size_t*) calloc(4*size, sizeof(size_t));
147147
if (NULL == new_rcounts) { err = -1; line = __LINE__; goto err_hndl; }
148148
new_scounts = new_rcounts + size;
149149
new_rdispls = (ptrdiff_t*) (new_scounts + size);

0 commit comments

Comments
 (0)