Repository navigation
UCP/RNDV: Use local memory info for unsupported remote memory types - #12111
Conversation
When the remote key memory type is not supported by the local context, such as GPU memory of another vendor, the remote side of rndv/rtr could not be estimated: no local MD registers that memory type and no local memtype endpoint copies it. get/rndv then had no variant, leaving gets smaller than the get_zcopy minimal size without any protocol. Estimate the remote side as if its buffer had the local buffer properties, as is already done when there is no remote key. Signed-off-by: Yaser Afshar <yaser.afshar@intel.com>
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Starting review — findings will be posted here when done. |
Signed-off-by: Yaser Afshar <yaser.afshar@intel.com>
|
🤖 Starting review — findings will be posted here when done. |
Signed-off-by: Yaser Afshar <yaser.afshar@intel.com>
|
🤖 Starting review — findings will be posted here when done. |
Signed-off-by: Yaser Afshar <yaser.afshar@intel.com> Co-authored-by: Thomas Vegas <125344591+tvegas1@users.noreply.github.com>
|
🤖 Starting review — findings will be posted here when done. |
Signed-off-by: Yaser Afshar <yaser.afshar@intel.com>
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The ASan Full analysisSummary: Root cause: Timeline from the log:
The 676 s gap exactly matches This is independent of the PR under test: the hung operation is an 8-byte eager send, while 04af746 / f4c79c0 only change rendezvous protocol estimation ( Implicated commit: Not this PR. No single commit can be pinned from this log; the most plausible suspects in the wireup path merged shortly before this run are File: Suggested fix: Re-trigger the Related: PR under test: #12111 (UCP/RNDV: Use local memory info for unsupported remote memory types) — diff not implicated. Candidate wireup changes: #11843, #12048, #11988. |
|
/azp run UCX PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 CI Triage Agent — TL;DR: The ASan/RoCE gtest job failed on a single UCT atomic test — Full analysisSummary: Root cause: From the fetched Azure log, the run completed normally (continuous output, no gaps — not a hang or timeout; Implicated commit: unknown — nothing in the log ties the failure to File: test/gtest/uct/test_amo.cc:106 ( Suggested fix:
Related: #12111 (the PR under test); no existing issue found for |
|
@tvegas1 CI is green now, including the dc_mlx5 job that failed before. Your approval was reset by a review re-request I sent right after it, could you approve again? I can merge it afterwards, or feel free to. Thanks |
What?
When the memory type of a remote key is not supported by the local context, estimate the remote side of rndv/rtr protocols as if the remote buffer had the local buffer's memory info (memory type, system device and flags). This is what is already done when there is no remote key. The remote datatype stays contiguous with a single segment, as for any remote key.
Why?
Between nodes with GPUs of different vendors, for example CUDA on one side and Level Zero on the other,
ucp_getof 1 to 64 bytes between GPU buffers fails:Gets smaller than the get_zcopy minimal size (one more than the inline CQE capacity for get responses; 65 bytes in the tested RC setup) rely on get/rndv, where the remote side writes the data. The local worker estimates that remote side with its own resources. No local MD can register the peer's memory type, and no local memtype endpoint can copy it, so the rndv/rtr variant has no lanes and get/rndv has no variant. None of the other get protocols covers that range for a GPU destination.
The remote estimate is used only to select the local protocol and for
UCX_PROTO_INFOoutput. At runtime the peer selects its own protocols from its real buffer, so only the reading side needs this change.Until this is merged, setting
UCX_IB_TX_INLINE_RESP=0on the reading side works around the failure, since get/zcopy then also covers the affected 1 to 64 byte gets in that setup.How?
ucp_proto_rndv_remote_select_param_init: treat a remote key whose memory type is not incontext->supported_mem_type_masklike a missing remote key when filling the memory info, and keep the contiguous datatype used for remote keys.test_ucp_rma_foreign_mem_type.get_blockingintest_ucp_rma.cc: the reading context has no GPU transports, so the memory type of the peer's GPU buffer is not in itssupported_mem_type_mask, and it reads from that buffer with data checks from 1 byte to 1 MB.UCX_IB_GPU_DIRECT_RDMA=nmakes get/rndv the only protocol for the GPU buffer.Testing
cudaandcuda-managed(cannot find remote protocol ... get into host memory from cuda) and passes with it. On Intel GPU nodes its ZE variants skip, because the GPU-aware instantiation loads onlycuda_copyandrocm_copy.test_ucp_proto_mock,test_ucp_rma_rndv,test_ucp_rma_gpu_nicandtest_ucp_rma_dmabufgtests: no new failures, on the H200 node and on an Intel Arc Pro B70 node. On the B70 node the run also had the change from UCT/ZE/COPY: Log the device count limit at diag level #12110, which this branch predates: without it, theze_copydevice-count warning fails every gtest when two GPUs are visible.ucp_getover RC with data checks, from 1 to 4096 bytes, intoze-devicememory from CUDA and into CUDA memory fromze-device. Gets of 1 to 64 bytes failed before the change and pass with it; the peer ran without the change.