Skip to content

Commit

Permalink
UCP/TAG/SEND: fixed datatype issue
Browse files Browse the repository at this point in the history
- added slow path where datatype is processed

(cherry picked from commit fc4e270)
  • Loading branch information
Sergey Oblomov committed Jan 10, 2022
1 parent 94140fd commit 5f5beba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ucp/tag/tag_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,15 @@ UCS_PROFILE_FUNC(ucs_status_ptr_t, ucp_tag_send_nbx,
contig_length, tag);
ucp_request_send_check_status(status, ret, goto out);
}
} else {
} else if (attr_mask == UCP_OP_ATTR_FLAG_NO_IMM_CMPL) {
datatype = ucp_dt_make_contig(1);
contig_length = count;
} else {
/* UCP_OP_ATTR_FIELD_DATATYPE | UCP_OP_ATTR_FLAG_NO_IMM_CMPL */
datatype = param->datatype;
if (UCP_DT_IS_CONTIG(datatype)) {
contig_length = ucp_contig_dt_length(datatype, count);
}
}

if (ucs_unlikely(param->op_attr_mask & UCP_OP_ATTR_FLAG_FORCE_IMM_CMPL)) {
Expand Down

0 comments on commit 5f5beba

Please sign in to comment.