Correctly use the ompi_ddt_type_size function.
This commit was SVN r2931.
Этот коммит содержится в:
родитель
eba6414ec0
Коммит
3467a74110
@ -841,10 +841,12 @@ ompi_convertor_t* ompi_convertor_get_copy( ompi_convertor_t* pConvertor )
|
||||
/* Actually we suppose that we can only do receiver side conversion */
|
||||
int ompi_convertor_get_packed_size( ompi_convertor_t* pConv, unsigned int* pSize )
|
||||
{
|
||||
if( ompi_ddt_type_size( pConv->pDesc, pSize ) != 0 )
|
||||
int ddt_size = 0;
|
||||
|
||||
if( ompi_ddt_type_size( pConv->pDesc, &ddt_size ) != 0 )
|
||||
return OMPI_ERROR;
|
||||
/* actually *pSize contain the size of one instance of the data */
|
||||
*pSize = (*pSize) * pConv->count;
|
||||
*pSize = ddt_size * pConv->count;
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user