Merge pull request #7061 from ggouaillardet/topic/ucx_zero_size_ddt
pml/ucx: correctly handle zero size datatypes
Этот коммит содержится в:
Коммит
096da7b3b5
@ -1,5 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
|
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
|
||||||
|
* Copyright (c) 2019 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -155,7 +157,6 @@ ucp_datatype_t mca_pml_ucx_init_datatype(ompi_datatype_t *datatype)
|
|||||||
(lb == 0))
|
(lb == 0))
|
||||||
{
|
{
|
||||||
ompi_datatype_type_size(datatype, &size);
|
ompi_datatype_type_size(datatype, &size);
|
||||||
PML_UCX_ASSERT(size > 0);
|
|
||||||
datatype->pml_data = ucp_dt_make_contig(size);
|
datatype->pml_data = ucp_dt_make_contig(size);
|
||||||
return datatype->pml_data;
|
return datatype->pml_data;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user