Homogeneously handle the one-sided features of the datatype.
This commit was SVN r9096.
Этот коммит содержится в:
родитель
79be2dbcdb
Коммит
d4ab61aec5
@ -363,7 +363,11 @@ int ompi_ddt_get_pack_description( ompi_datatype_t* datatype,
|
||||
void* recursive_buffer;
|
||||
|
||||
if( NULL == datatype->packed_description ) {
|
||||
if( datatype->flags & DT_FLAG_PREDEFINED ) {
|
||||
datatype->packed_description = malloc( 2 * sizeof(int) );
|
||||
} else {
|
||||
datatype->packed_description = malloc( args->total_pack_size );
|
||||
}
|
||||
recursive_buffer = datatype->packed_description;
|
||||
__ompi_ddt_pack_description( datatype, &recursive_buffer, &next_index );
|
||||
}
|
||||
|
@ -399,9 +399,6 @@ int32_t ompi_ddt_init( void )
|
||||
datatype->desc.length = 1;
|
||||
datatype->desc.used = 1;
|
||||
datatype->btypes[i] = 1;
|
||||
datatype->packed_description = malloc(2 * sizeof(int) );
|
||||
((int*)(datatype->packed_description))[0] = MPI_COMBINER_DUP;
|
||||
((int*)(datatype->packed_description))[1] = i;
|
||||
}
|
||||
|
||||
/* Create the f2c translation table */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user