properly compute starting offset -- the lb will be included in the offset, so we don't need
both. Refs trac:864 This commit was SVN r13494. The following Trac tickets were found above: Ticket 864 --> https://svn.open-mpi.org/trac/ompi/ticket/864
Этот коммит содержится в:
родитель
26897a626d
Коммит
09cc9e4941
@ -63,8 +63,6 @@ ompi_mtl_datatype_recv_buf(struct ompi_convertor_t *convertor,
|
|||||||
size_t *buffer_len,
|
size_t *buffer_len,
|
||||||
bool *free_on_error)
|
bool *free_on_error)
|
||||||
{
|
{
|
||||||
ptrdiff_t lb;
|
|
||||||
|
|
||||||
ompi_convertor_get_packed_size(convertor, buffer_len);
|
ompi_convertor_get_packed_size(convertor, buffer_len);
|
||||||
*free_on_error = false;
|
*free_on_error = false;
|
||||||
if( 0 == *buffer_len ) {
|
if( 0 == *buffer_len ) {
|
||||||
@ -76,8 +74,7 @@ ompi_mtl_datatype_recv_buf(struct ompi_convertor_t *convertor,
|
|||||||
*buffer = malloc(*buffer_len);
|
*buffer = malloc(*buffer_len);
|
||||||
*free_on_error = true;
|
*free_on_error = true;
|
||||||
} else {
|
} else {
|
||||||
ompi_ddt_type_lb(convertor->pDesc, &lb);
|
*buffer = convertor->pBaseBuf +
|
||||||
*buffer = convertor->pBaseBuf + lb +
|
|
||||||
convertor->use_desc->desc[convertor->use_desc->used].end_loop.first_elem_disp;;
|
convertor->use_desc->desc[convertor->use_desc->used].end_loop.first_elem_disp;;
|
||||||
}
|
}
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user