Don't forget to move the pointer back by the true_lb.
This commit was SVN r25262.
Этот коммит содержится в:
родитель
e4f8b662a1
Коммит
2fefd3a928
@ -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);
|
err = ompi_datatype_get_true_extent(rdtype, &true_lb, &true_extent);
|
||||||
if (MPI_SUCCESS != err) { line = __LINE__; goto err_hndl; }
|
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)),
|
((size - rank) * rcount - 1) * rext)),
|
||||||
sizeof(char));
|
sizeof(char));
|
||||||
if (NULL == free_buf) {
|
if (NULL == free_buf) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user