Skip to content

Commit

Permalink
Merge pull request openucx#6307 from bureddy/put_zcopy-v1.10.x
Browse files Browse the repository at this point in the history
UCP/RNDV: Set addr NULL in RTS if reg md_map is NULL. - v1.10.x
  • Loading branch information
yosefe authored Feb 10, 2021
2 parents 364f7cf + d0f98a4 commit abb8737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ucp/rndv/rndv.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ size_t ucp_rndv_rts_pack(ucp_request_t *sreq, ucp_rndv_rts_hdr_t *rndv_rts_hdr,

/* Pack remote keys (which can be empty list) */
if (UCP_DT_IS_CONTIG(sreq->send.datatype) &&
ucp_rndv_is_get_zcopy(sreq, worker->context)) {
ucp_rndv_is_get_zcopy(sreq, worker->context) &&
(UCP_MEM_IS_HOST(sreq->send.mem_type) ||
(sreq->send.state.dt.dt.contig.md_map != 0))) {
/* pack rkey, ask target to do get_zcopy */
rndv_rts_hdr->address = (uintptr_t)sreq->send.buffer;
rkey_buf = UCS_PTR_BYTE_OFFSET(rndv_rts_hdr,
Expand Down

0 comments on commit abb8737

Please sign in to comment.