Skip to content

Commit 33361aa

Browse files
committed
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 <[email protected]>
1 parent ea7e1ea commit 33361aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/pml/ucx/pml_ucx_datatype.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
22
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
3+
* Copyright (c) 2019 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
35
* $COPYRIGHT$
46
*
57
* Additional copyrights may follow
@@ -155,7 +157,6 @@ ucp_datatype_t mca_pml_ucx_init_datatype(ompi_datatype_t *datatype)
155157
(lb == 0))
156158
{
157159
ompi_datatype_type_size(datatype, &size);
158-
PML_UCX_ASSERT(size > 0);
159160
datatype->pml_data = ucp_dt_make_contig(size);
160161
return datatype->pml_data;
161162
}

0 commit comments

Comments
 (0)