1
1

This optimization require that the true extent of the data is equal to the size of the data. Not the extent.

This commit was SVN r6431.
Этот коммит содержится в:
George Bosilca 2005-07-12 05:30:35 +00:00
родитель 07ad024ed3
Коммит a4548c9e89

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

@ -764,7 +764,7 @@ int32_t ompi_ddt_copy_content_same_ddt( const ompi_datatype_t* datatype, int32_t
*/
if( (datatype->flags & DT_FLAG_CONTIGUOUS) == DT_FLAG_CONTIGUOUS ) {
long extent = (datatype->ub - datatype->lb);
if( (long)datatype->size == extent ) { /* all contiguous */
if( (long)datatype->size == (datatype->true_ub - datatype->true_lb) ) { /* all contiguous */
int total_length = datatype->size * count;
lastLength = 128 * 1024;
if( lastLength > total_length ) lastLength = total_length;