Don't forget to move the pointers after the copy (only affects large data
transfers). This commit was SVN r26243.
Этот коммит содержится в:
родитель
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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user