Skip to content

Commit

Permalink
Merge pull request #2967 from hoopoepg/topic/fixed-incorrect-md-index…
Browse files Browse the repository at this point in the history
…-v1.4

UCT/MD: fixed incorrect md index usage - v1.4
  • Loading branch information
yosefe authored Oct 18, 2018
2 parents cfb691d + 8b95051 commit 1c759a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ucp/proto/proto_am.inl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ ucs_status_t ucp_do_am_zcopy_single(uct_pending_req_t *self, uint8_t am_id,

ucp_dt_iov_copy_uct(ep->worker->context,iov, &iovcnt, max_iov,
&state, req->send.buffer, req->send.datatype,
req->send.length, 0, NULL);
req->send.length, ucp_ep_md_index(ep, req->send.lane), NULL);

status = uct_ep_am_zcopy(ep->uct_eps[req->send.lane], am_id, (void*)hdr,
hdr_size, iov, iovcnt, 0,
Expand Down
6 changes: 4 additions & 2 deletions src/ucp/tag/offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ ucp_do_tag_offload_zcopy(uct_pending_req_t *self, uint64_t imm_data,
req->send.lane = ucp_ep_get_tag_lane(ep);

ucp_dt_iov_copy_uct(ep->worker->context, iov, &iovcnt, max_iov, &dt_state,
req->send.buffer, req->send.datatype, req->send.length, 0, NULL);
req->send.buffer, req->send.datatype, req->send.length,
ucp_ep_md_index(ep, req->send.lane), NULL);

status = uct_ep_tag_eager_zcopy(ep->uct_eps[req->send.lane], req->send.tag.tag,
imm_data, iov, iovcnt, 0,
Expand Down Expand Up @@ -559,7 +560,8 @@ ucs_status_t ucp_tag_offload_rndv_zcopy(uct_pending_req_t *self)
ucs_assert_always(UCP_DT_IS_CONTIG(req->send.datatype));

ucp_dt_iov_copy_uct(ep->worker->context, iov, &iovcnt, max_iov, &dt_state,
req->send.buffer, req->send.datatype, req->send.length, 0, NULL);
req->send.buffer, req->send.datatype, req->send.length,
ucp_ep_md_index(ep, req->send.lane), NULL);

rndv_op = uct_ep_tag_rndv_zcopy(ep->uct_eps[req->send.lane], req->send.tag.tag,
&rndv_hdr, sizeof(rndv_hdr), iov, iovcnt, 0,
Expand Down

0 comments on commit 1c759a1

Please sign in to comment.