Skip to content

Commit 2eb4d53

Browse files
committed
opal/datatype: do not compute ptypes for OPAL predefined datatypes
Fixes #3522 Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit 5a35a8e)
1 parent 623c091 commit 2eb4d53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/datatype/opal_convertor.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ opal_datatype_compute_remote_size( const opal_datatype_t* pData,
451451
uint32_t typeMask = pData->bdt_used;
452452
size_t length = 0;
453453

454+
if (opal_datatype_is_predefined(pData)) {
455+
return sizes[pData->desc.desc->elem.common.type];
456+
}
457+
454458
if( OPAL_UNLIKELY(NULL == pData->ptypes) ) {
455459
/* Allocate and fill the array of types used in the datatype description */
456460
opal_datatype_compute_ptypes( (opal_datatype_t*)pData );

0 commit comments

Comments
 (0)