From 33361aa124a2fd918a59f712f0128614928f2334 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Wed, 9 Oct 2019 10:50:13 +0900 Subject: [PATCH] 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 --- ompi/mca/pml/ucx/pml_ucx_datatype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/pml/ucx/pml_ucx_datatype.c b/ompi/mca/pml/ucx/pml_ucx_datatype.c index 95f9da44cc..aa346c8164 100644 --- a/ompi/mca/pml/ucx/pml_ucx_datatype.c +++ b/ompi/mca/pml/ucx/pml_ucx_datatype.c @@ -1,5 +1,7 @@ /* * 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$ * * Additional copyrights may follow @@ -155,7 +157,6 @@ ucp_datatype_t mca_pml_ucx_init_datatype(ompi_datatype_t *datatype) (lb == 0)) { ompi_datatype_type_size(datatype, &size); - PML_UCX_ASSERT(size > 0); datatype->pml_data = ucp_dt_make_contig(size); return datatype->pml_data; }