1
1

Merge pull request #8142 from AboorvaDevarajan/fix_zero_byte_v4.1.x

[v4.1.x] pml/ucx: fix zero sized datatype transfers
This commit is contained in:
Jeff Squyres 2020-10-29 11:05:43 -04:00 committed by GitHub
commit 96ba8b7279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ pml_ucx_datatype_t *mca_pml_ucx_init_nbx_datatype(ompi_datatype_t *datatype,
pml_datatype->op_param.recv.cb.recv = mca_pml_ucx_recv_nbx_completion;
is_contig_pow2 = mca_pml_ucx_datatype_is_contig(datatype) &&
!(size & (size - 1)); /* is_pow2(size) */
(size && !(size & (size - 1))); /* is_pow2(size) */
if (is_contig_pow2) {
pml_datatype->size_shift = (int)(log(size) / log(2.0)); /* log2(size) */
} else {