Skip to content

Commit 096da7b

Browse files
Merge pull request #7061 from ggouaillardet/topic/ucx_zero_size_ddt
pml/ucx: correctly handle zero size datatypes
2 parents 8906f8c + 33361aa commit 096da7b

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)