Repository navigation
UCT/CUDA_COPY: Fix reachability between interfaces - #11783
usberkeley wants to merge 2 commits into
Conversation
|
🤖 CI Triage Agent — TL;DR: All 8 GPU jobs of build 132017 aborted in gtest Full analysisSummary: |
|
🤖 CI Triage Agent — TL;DR: The gtest Full analysisSummary: Root cause: The PR introduces an explicit host→host rejection in the cuda_copy transport:
The gtest was not updated: The 15-minute silence is a secondary defect, not a slow test: Implicated commit: [REDACTED:Hex High Entropy String] — Mason Pitt, "UCP/RNDV: Fix direct CUDA copy protocol selection" (same series as 83dc3d0 / 665292b "UCT/CUDA_COPY: Fix reachability between interfaces") File: Suggested fix:
Related: PR #11783 (UCT/CUDA_COPY: Fix reachability between interfaces) — this is the PR under test; commits 665292b, 83dc3d0, 96997ba.
|
|
🤖 CI Triage Agent — [incomplete: stop_reason=max_tokens] |
|
🤖 CI Triage Agent — TL;DR: Full analysisSummary: ASAN gpu gtest job failed with 3 failing tests — Root cause: The PR head commit adds an early unsupported-path to cuda_copy RMA: if ((src_type == UCS_MEMORY_TYPE_HOST) && (dst_type == UCS_MEMORY_TYPE_HOST)) {
ucs_trace("host to host memory copy is not supported");
return UCS_ERR_UNSUPPORTED;
}(
Implicated commit: 1bb4321 — "UCT/CUDA: Fix zero-length and unsupported host transfers", Mason Pitt (PR #11783 head; related earlier commits on the same branch: 665292b, 83dc3d0 "UCT/CUDA_COPY: Fix reachability between interfaces / endpoint connectivity detection", which is what exposes the File: Suggested fix:
Related: PR #11783 ("UCT/CUDA_COPY: Fix reachability between interfaces"); no existing issue found for this test failure. |
|
🤖 CI Triage Agent — TL;DR: The Coverity Full analysisSummary: Root cause: In the new gtest helper Implicated commit: File: Suggested fix: Sanitize the loop bound so Coverity can see it is range-checked, e.g.: rpriv = static_cast<const ucp_proto_rndv_bulk_priv_t*>(proto_config->priv);
const ucp_lane_index_t num_lanes = ucs_min(rpriv->mpriv.num_lanes,
static_cast<ucp_lane_index_t>(UCP_MAX_LANES));
EXPECT_LE(rpriv->mpriv.num_lanes, UCP_MAX_LANES);
for (lane_index = 0; lane_index < num_lanes; ++lane_index) {
md_map |= UCS_BIT(rpriv->mpriv.lanes[lane_index].super.md_index);
}An explicit Related: PR #11783 (branch |
|
🤖 CI Triage Agent — TL;DR: The gtest Full analysisSummary: Root cause: From the log backtrace the fatal is in The reason no lane is found is the restriction added on this branch in /* Legacy rendezvous supports direct access between the same memory types only. */
if (((rkey == NULL) || (mem_type == rkey->mem_type)) &&
ucp_rkey_is_direct_access_supported(md_attr, mem_type, rkey)) {For this test the local and remote types differ ( Implicated commit: 373283c "UCP/RNDV: Restrict legacy direct access to same memory type" (Mason Pitt), part of PR #11783 branch File: Suggested fix:
Related: PR #11783 (this PR). Similar historical request-ID/ptr-map leak in the rndv pipeline: PR #5769, issue #6836. |
|
🤖 Starting review — findings will be posted here when done. |
|
Coverage note: The functional data-path (actual RMA GET over cuda_copy between host and CUDA in the same process, and the h2h |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: ASAN GPU job failed: Root cause: From the backtrace: Implicated commit: File: src/uct/cuda/cuda_copy/cuda_copy_ep.c:131 (selection side: src/uct/cuda/cuda_copy/cuda_copy_iface.c:87-112 and src/ucp/rndv/proto_rndv.c:91-94) Suggested fix: Make cross-device pairs unreachable/unsupported rather than assertable:
Related: PR #11783 (UCT/CUDA_COPY: Fix reachability between interfaces); possibly related device-reachability issue #11048
|
c34afe3 to
8313e70
Compare
|
🤖 Starting review — findings will be posted here when done. |
8313e70 to
57a8f1d
Compare
|
Coverage note: The functional UCP-level RMA GET path that exercises ucp_rma_rndv_flush_open/close + RNDV_FLUSH_EP_TRACKED on an endpoint that is actually on the match context (ON_MATCH_CTX set) is not directly covered by a new end-to-end test; it is exercised only indirectly. A focused UCP test issuing RMA GET before the endpoint is fully connected would directly protect the flush-accounting fix. Otherwise, confirm which CI job covers that ordering. |
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The gtest Full analysisSummary: Root cause: With proto_v1 rndv over GPU memory the receiver may pipeline via What made this latent v1 bug appear on this branch: commit [REDACTED:Hex High Entropy String] replaces the per-iface cuda_copy address with a process-wide UUID ( Implicated commit: [REDACTED:Hex High Entropy String] — "UCT/CUDA_COPY: Fix reachability between interfaces", Mason Pitt (touches File: src/ucp/rndv/rndv.c:2398 (ID released while frag RTRs are still in flight); assert site src/ucp/core/ucp_request.inl:934; trigger src/uct/cuda/cuda_copy/cuda_copy_iface.c:62-112,358 Suggested fix:
Related: PR #11783 (this build); similar rndv-pipeline fallback issue #6836
|
|
🤖 Starting review — findings will be posted here when done. |
Signed-off-by: Mason Pitt <bradley.b.pitt@gmail.com>
7ba6ad0 to
594e9cd
Compare
|
In uct_cuda_copy_iface_get_uuid: ucs_generate_uuid() already mixes in tid/time/bootid entropy, so the (uintptr_t)getpid() seed is somewhat redundant for uniqueness. It's harmless, but the added #include <unistd.h> and pid seed could be dropped in favor of ucs_generate_uuid(0) to match ucs_rand_seed's usage. Not important. Coverage note (not a code issue): the change is exercised by proto-selection and UCT gtests, but there is no new end-to-end UCP functional test that actually issues an RMA/staging transfer over cuda_copy between host and CUDA in the same process. The behavior is covered indirectly by test_uct_perf/test_p2p_*; if a GPU CI job runs those, that's sufficient — worth confirming which job covers the same-worker cuda_copy data path. |
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
Signed-off-by: Mason Pitt <bradley.b.pitt@gmail.com>
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
|
We’ve added a process-wide UUID to all cuda_copy interfaces. Feel free to take a look when you have a chance. |
What?
Allow different
cuda_copyinterfaces in the same process to reach each other.Why?
Each interface had its own UUID, so interfaces in the same process were treated as unreachable.
How?
Use one process-wide UUID for all
cuda_copyinterfaces and update the reachability test to use two separate interfaces.