1
1

opal/datatype: do not compute ptypes for OPAL predefined datatypes

Fixes open-mpi/ompi#3522

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2017-05-15 11:43:48 +09:00
родитель e682b5d7d8
Коммит 5a35a8e82c

Просмотреть файл

@ -451,6 +451,10 @@ opal_datatype_compute_remote_size( const opal_datatype_t* pData,
uint32_t typeMask = pData->bdt_used;
size_t length = 0;
if (opal_datatype_is_predefined(pData)) {
return sizes[pData->desc.desc->elem.common.type];
}
if( OPAL_UNLIKELY(NULL == pData->ptypes) ) {
/* Allocate and fill the array of types used in the datatype description */
opal_datatype_compute_ptypes( (opal_datatype_t*)pData );