1
1

Don't forget to move the pointers after the copy (only affects large data

transfers).

This commit was SVN r26243.
Этот коммит содержится в:
George Bosilca 2012-04-06 14:50:04 +00:00
родитель bd8b4f7f1e
Коммит abf60337de

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

@ -289,8 +289,11 @@ ompi_datatype_copy_content_same_ddt( const ompi_datatype_t* type, size_t count,
while( 0 != count ) {
length = INT_MAX;
if( ((size_t)length) > count ) length = (int32_t)count;
rc = opal_datatype_copy_content_same_ddt( &type->super, count, pDestBuf, pSrcBuf );
rc = opal_datatype_copy_content_same_ddt( &type->super, length,
pDestBuf, pSrcBuf );
if( 0 != rc ) return rc;
pDestBuf += (ptrdiff_t)length;
pSrcBuf += (ptrdiff_t)length;
count -= (size_t)length;
}
return 0;