1
1

Correct the disp array when creating a data based on the

MPI_COMBINER_INDEXED_BLOCK combiner.

This commit was SVN r20123.
Этот коммит содержится в:
George Bosilca 2008-12-13 01:57:27 +00:00
родитель fec8692074
Коммит aa4e9da26d
2 изменённых файлов: 7 добавлений и 5 удалений

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

@ -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 * Return: 0 if no packing is required for sending (the upper layer
* 1 if data does need to be packed (src and destination are * can use directly the pointer to the contiguous user
* heterogenous from a data perspective, or data is not * buffer).
* contigous. * 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 static inline int32_t
ompi_convertor_need_buffers( const ompi_convertor_t* pConvertor ) 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; break;
/******************************************************************/ /******************************************************************/
case MPI_COMBINER_INDEXED_BLOCK: 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; break;
/******************************************************************/ /******************************************************************/
case MPI_COMBINER_STRUCT_INTEGER: case MPI_COMBINER_STRUCT_INTEGER: