Allocate enough memory for the reduce operation when MPI_IN_PLACE is specified.
This commit was SVN r12260.
Этот коммит содержится в:
родитель
8b09bd181f
Коммит
9cf3040e5f
@ -99,7 +99,7 @@ int ompi_coll_tuned_reduce_intra_chain( void *sendbuf, void *recvbuf, int count,
|
||||
/* handle non existant recv buffer (i.e. its NULL.. like basic allreduce uses!) */
|
||||
accumbuf = (char*)recvbuf;
|
||||
if( NULL == accumbuf ) {
|
||||
accumbuf = (char*)malloc(ext); /* TO BE OPTIMIZED */
|
||||
accumbuf = (char*)malloc(realsegsize * num_segments); /* TO BE OPTIMIZED */
|
||||
if (accumbuf == NULL) { line = __LINE__; ret = -1; goto error_hndl; }
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user