Skip to content

Commit

Permalink
Merge pull request #1540 from brminich/topic/ucp_rndv_truncated_fix
Browse files Browse the repository at this point in the history
UCP: Fix RNDV truncated on receiver
  • Loading branch information
yosefe authored May 28, 2017
2 parents 92cdd1e + d845fe9 commit b972dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/ucp/tag/rndv.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,6 @@ UCS_PROFILE_FUNC_VOID(ucp_rndv_matched, (worker, rreq, rndv_rts_hdr),
rreq->recv.info.sender_tag = rndv_rts_hdr->super.tag;
rreq->recv.info.length = rndv_rts_hdr->size;

ucs_assert_always(rreq->recv.length != 0);

/* the internal send request allocated on receiver side (to perform a "get"
* operation, send "ATS" and "RTR") */
rndv_req = ucp_worker_allocate_reply(worker, rndv_rts_hdr->sreq.sender_uuid);
Expand Down
6 changes: 3 additions & 3 deletions test/gtest/ucp/test_ucp_tag_match.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ UCS_TEST_P(test_ucp_tag_match, rndv_truncated, "RNDV_THRESH=1048576") {
ucs_status_t status;

std::vector<char> sendbuf(size, 0);
std::vector<char> recvbuf(size, 0);

skip_loopback();

Expand All @@ -515,8 +514,9 @@ UCS_TEST_P(test_ucp_tag_match, rndv_truncated, "RNDV_THRESH=1048576") {
/* receiver - get the RTS and put it into unexpected */
short_progress_loop();

/* receiver - issue a receive request, match it with the RTS and perform rndv get */
status = recv_b(&recvbuf[0], (recvbuf.size())/2, DATATYPE, 0x1337, 0xffff, &info);
/* receiver - issue a receive request with zero length,
* no assertions should occur */
status = recv_b(NULL, 0, DATATYPE, 0x1337, 0xffff, &info);
EXPECT_EQ(UCS_ERR_MESSAGE_TRUNCATED, status);

/* sender - get the ATS and set send request to completed */
Expand Down

0 comments on commit b972dd3

Please sign in to comment.