1
1

pml/ucx: correctly handle zero size datatypes

zero-size derived datatypes are now flagged as OPAL_DATATYPE_FLAG_CONTIGUOUS
so update mca_pml_ucx_init_datatype() to correctly handle them.
Since 'size' is a 'size_t', the assertion can simply be removed.

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2019-10-09 10:50:13 +09:00
родитель ea7e1ea859
Коммит 33361aa124

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

@ -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;
} }