Skip to content

Commit

Permalink
Merge pull request #4106 from AboorvaDevarajan/v1.6.x_v1
Browse files Browse the repository at this point in the history
UCP/PROTO: Fix mem type support with generic datatype
  • Loading branch information
yosefe authored Sep 1, 2019
2 parents 6e6cc17 + ebb4c94 commit b7f1940
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ucp/proto/proto_am.inl
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,8 @@ ucp_proto_get_zcopy_threshold(const ucp_request_t *req,
return max_zcopy;
}

if (ucs_unlikely(!UCP_MEM_IS_HOST(req->send.mem_type))) {
return ucs_min(max_zcopy, msg_config->mem_type_zcopy_thresh[req->send.mem_type]);
}

if (ucs_likely(UCP_DT_IS_CONTIG(req->send.datatype))) {
return ucs_min(max_zcopy, msg_config->zcopy_thresh[0]);
return ucs_min(max_zcopy, msg_config->mem_type_zcopy_thresh[req->send.mem_type]);
} else if (UCP_DT_IS_IOV(req->send.datatype)) {
if (0 == count) {
/* disable zcopy */
Expand Down

0 comments on commit b7f1940

Please sign in to comment.