opal/datatype: do not compute ptypes for OPAL predefined datatypes
Fixes open-mpi/ompi#3522 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
e682b5d7d8
Коммит
5a35a8e82c
@ -451,6 +451,10 @@ opal_datatype_compute_remote_size( const opal_datatype_t* pData,
|
|||||||
uint32_t typeMask = pData->bdt_used;
|
uint32_t typeMask = pData->bdt_used;
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
|
|
||||||
|
if (opal_datatype_is_predefined(pData)) {
|
||||||
|
return sizes[pData->desc.desc->elem.common.type];
|
||||||
|
}
|
||||||
|
|
||||||
if( OPAL_UNLIKELY(NULL == pData->ptypes) ) {
|
if( OPAL_UNLIKELY(NULL == pData->ptypes) ) {
|
||||||
/* Allocate and fill the array of types used in the datatype description */
|
/* Allocate and fill the array of types used in the datatype description */
|
||||||
opal_datatype_compute_ptypes( (opal_datatype_t*)pData );
|
opal_datatype_compute_ptypes( (opal_datatype_t*)pData );
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user