The condition to be able to use the user buffer for the receive is to have a contiguous datatype AND to have
it's extent equal to the size. This commit was SVN r5103.
Этот коммит содержится в:
родитель
9100aa945d
Коммит
c7fe83c845
@ -600,7 +600,8 @@ conversion_fct_t ompi_ddt_copy_functions[DT_MAX_PREDEFINED] = {
|
||||
*/
|
||||
int32_t ompi_convertor_need_buffers( ompi_convertor_t* pConvertor )
|
||||
{
|
||||
if( pConvertor->flags & DT_FLAG_CONTIGUOUS ) return 0;
|
||||
ompi_datatype_t* pData = pConvertor->pDesc;
|
||||
if( (long)pData->size == (pData->ub - pData->lb) ) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user