Correctly compute the size of the new datatype description. Before, the size was always
larger than required, now we are a lot more conservative. This commit was SVN r10201.
Этот коммит содержится в:
родитель
74c97fb784
Коммит
5ac12c52a0
@ -36,10 +36,6 @@ int32_t ompi_ddt_create_struct( int count, const int* pBlockLength, const long*
|
||||
/* if we compute the total number of elements before we can
|
||||
* avoid increasing the size of the desc array often.
|
||||
*/
|
||||
for( i = 0; i < count; i++ ) {
|
||||
disp += pTypes[i]->desc.used;
|
||||
if( pBlockLength[i] != 1 ) disp += 2;
|
||||
}
|
||||
lastType = (ompi_datatype_t*)pTypes[0];
|
||||
lastBlock = pBlockLength[0];
|
||||
lastExtent = lastType->ub - lastType->lb;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user