1
1

Merge pull request #3526 from ggouaillardet/topic/unpack_hetero

opal/datatype: do not compute ptypes for OPAL predefined datatypes
Этот коммит содержится в:
Gilles Gouaillardet 2017-05-17 14:35:49 +09:00 коммит произвёл GitHub
родитель 384387bb53 5a35a8e82c
Коммит c4f64c39d1

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

@ -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 );