Correct the disp array when creating a data based on the
MPI_COMBINER_INDEXED_BLOCK combiner. This commit was SVN r20123.
Этот коммит содержится в:
родитель
fec8692074
Коммит
aa4e9da26d
@ -159,10 +159,12 @@ static inline int ompi_convertor_cleanup( ompi_convertor_t* convertor )
|
||||
}
|
||||
|
||||
/*
|
||||
* Return: 0 if data is nor required to be packed for sending
|
||||
* 1 if data does need to be packed (src and destination are
|
||||
* heterogenous from a data perspective, or data is not
|
||||
* contigous.
|
||||
* Return: 0 if no packing is required for sending (the upper layer
|
||||
* can use directly the pointer to the contiguous user
|
||||
* buffer).
|
||||
* 1 if data does need to be packed, i.e. heterogeneous peers
|
||||
* (source arch != dest arch) or non contiguous memory
|
||||
* layout.
|
||||
*/
|
||||
static inline int32_t
|
||||
ompi_convertor_need_buffers( const ompi_convertor_t* pConvertor )
|
||||
|
@ -657,7 +657,7 @@ __ompi_ddt_create_from_args( int32_t* i, MPI_Aint* a,
|
||||
break;
|
||||
/******************************************************************/
|
||||
case MPI_COMBINER_INDEXED_BLOCK:
|
||||
ompi_ddt_create_indexed_block( i[0], i[1], &(i[1+i[0]]), d[0], &datatype );
|
||||
ompi_ddt_create_indexed_block( i[0], i[1], &(i[2]), d[0], &datatype );
|
||||
break;
|
||||
/******************************************************************/
|
||||
case MPI_COMBINER_STRUCT_INTEGER:
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user