Repository navigation
Closed
Labels
Description
Describe the bug
This issue showed up in my tests with SRD which only supports get_zcopy, and not put_zcopy. But, I can also reproduce it with RC on an IB cluster by manually removing UCT_IFACE_FLAG_PUT_BCOPY and UCT_IFACE_FLAG_PUT_ZCOPY flags in uct_rc_iface_query.
# OSU MPI Multiple Bandwidth / Message Rate Test v5.6.3
# Send Buffer on DEVICE (D) and Receive Buffer on DEVICE (D)
# [ pairs: 1 ] [ window size: 64 ]
# Size MB/s Messages/s
1 0.03 31094.26
2 0.06 30796.78
4 0.12 30850.47
8 0.25 30934.21
16 0.49 30926.95
32 0.99 30863.00
64 1.87 29231.43
128 3.89 30379.40
256 7.90 30872.14
512 15.77 30796.30
1024 31.00 30273.87
2048 62.42 30477.93
4096 122.95 30017.96
8192 241.39 29466.10
16384 323.60 19750.98
rndv.c:1991 Assertion `!(rreq->flags & UCP_REQUEST_FLAG_RNDV_FRAG)' failed
As far as I could figure out, a received rndv data can correspond to a frag RTR, so I'm not sure why we have that assertion. However, removing it resulted in further assertion failures. For instance, after applying the following changes
diff --git a/src/ucp/rndv/rndv.c b/src/ucp/rndv/rndv.c
index 84aacc12d..e3a59be42 100644
--- a/src/ucp/rndv/rndv.c
+++ b/src/ucp/rndv/rndv.c
@@ -1156,7 +1156,7 @@ static void ucp_rndv_send_frag_rtr(ucp_worker_h worker, ucp_request_t *rndv_req,
freq->recv.length = frag_size;
freq->recv.state.dt.contig.md_map = 0;
freq->recv.frag.offset = offset;
- freq->flags = UCP_REQUEST_FLAG_RNDV_FRAG;
+ freq->flags = UCP_REQUEST_FLAG_RNDV_FRAG | UCP_REQUEST_FLAG_RECV_TAG;
ucp_request_set_super(freq, rreq);
@@ -1988,7 +1988,6 @@ UCS_PROFILE_FUNC(ucs_status_t, ucp_rndv_data_handler,
rreq = ucp_request_get_super(rndv_req);
ucs_assert(rreq != NULL);
- ucs_assert(!(rreq->flags & UCP_REQUEST_FLAG_RNDV_FRAG));
ucs_assert(rreq->flags &
(UCP_REQUEST_FLAG_RECV_AM | UCP_REQUEST_FLAG_RECV_TAG));
I got to the failure below:
ucp_request.inl:747 Assertion `req->recv.remaining >= length' failed: req->recv.remaining=0 length=8238
Steps to Reproduce
mpirun -n 2 --hostfile ~/hostfile --mca pml ucx --mca opal_common_ucx_tls any --mca opal_common_ucx_devices any -x UCX_TLS=rc,cuda_copy,cuda_ipc,self -x UCX_IB_GPU_DIRECT_RDMA=n ./osu_mbw_mr D DUCT version=1.11.0 revision 2175333
Activity
bureddy commentedon May 21, 2021
@SeyedMir PUT_ZCOPY is must for existing pipeline protocols.
dmitrygx commentedon May 21, 2021
@bureddy shall we support RNDV over AM for pipeline protocols? or somehow show that sender doesn't support PUT_ZCOPY when sending RTS?
dmitrygx commentedon May 28, 2021
@SeyedMir could you check if #6870 fixes the issue?
SeyedMir commentedon Jun 1, 2021
@dmitrygx It still fails, but for a different assertion. Like before, it works fine if the RC iface has PUT_ZCOPY/PUT_BCOPY caps. But, it fails when I remove PUT_ZCOPY/PUT_BCOPY.
dmitrygx commentedon Jun 1, 2021
@SeyedMir thanks for checking!
we decided to change the implementation by just disabling PUT Zcopy pipeline protocol if it is not supported - see #6881
could you test it on your setup, please?
SeyedMir commentedon Jun 1, 2021
@dmitrygx testing with #6881
dmitrygx commentedon Jun 1, 2021
@SeyedMir thanks for checking it! Unfortunately, the fix was incomplete.
I managed to reproduce the issue in UCP gtests. Now we have stable reproducer for the problem in UCX testing.
@bureddy helped me to understand and fix what leads to the last issue. thanks @bureddy!
@SeyedMir could you check the changes from #6881 PR again, please?
SeyedMir commentedon Jun 2, 2021
@dmitrygx it is working fine now
dmitrygx commentedon Jun 2, 2021
@SeyedMir thanks for the testing