Revert "opal_pack_homogeneous_contig_with_gaps_function: correctly handle contiguous ddt made of more than one basic type"
This reverts commit e4846746f4d4a746cba5e1b1e62fcd536830f136.
Этот коммит содержится в:
родитель
60e4d6c795
Коммит
e47cb9636d
@ -12,8 +12,6 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
|
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
|
||||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2015 Research Organization for Information Science
|
|
||||||
* and Technology (RIST). All rights reserved.
|
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -120,8 +118,10 @@ opal_pack_homogeneous_contig_with_gaps_function( opal_convertor_t* pConv,
|
|||||||
assert( (pData->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS) && ((OPAL_PTRDIFF_TYPE)pData->size != extent) );
|
assert( (pData->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS) && ((OPAL_PTRDIFF_TYPE)pData->size != extent) );
|
||||||
DO_DEBUG( opal_output( 0, "pack_homogeneous_contig( pBaseBuf %p, iov_count %d )\n",
|
DO_DEBUG( opal_output( 0, "pack_homogeneous_contig( pBaseBuf %p, iov_count %d )\n",
|
||||||
pConv->pBaseBuf, *out_size ); );
|
pConv->pBaseBuf, *out_size ); );
|
||||||
|
if( stack[1].type != opal_datatype_uint1.id ) {
|
||||||
|
stack[1].count *= opal_datatype_basicDatatypes[stack[1].type]->size;
|
||||||
stack[1].type = opal_datatype_uint1.id;
|
stack[1].type = opal_datatype_uint1.id;
|
||||||
stack[1].count = pData->size;
|
}
|
||||||
|
|
||||||
/* There are some optimizations that can be done if the upper level
|
/* There are some optimizations that can be done if the upper level
|
||||||
* does not provide a buffer.
|
* does not provide a buffer.
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user