Explore report · NVIDIA/hyperflare-inference #643

Raw Markdown for agents: https://autobot.eidonix.com/p/266a5649-09ab-4136-9136-1d082c23ff98.md

PR #643 case file — perf(helios): add 2-step RoCE ring proxy opcodes for 4-rank switchless rings

https://github.com/NVIDIA/hyperflare-inference/pull/643 · open, ready for review, head 9c3ea69d, base main (branch point 0a8c20f4), single commit, 1 file, +311/−26 (helios/native/roce_proxy.c). Opened and last updated 2026-11-30 17:35. Labels: none. Reviews: none. PR CI on head: passed (see Process — it does not compile the changed C).

Key findings

The change

Single file, helios/native/roce_proxy.c, +311/−26 (pr_files). Plain terms: the b12x one-shot allreduce writes to all peers from each rank; on a 4-rank closed ring the one peer it has no direct cable to is reached by a CPU mailbox relay. This PR teaches the proxy two new doorbell "kinds" so that, for a 4-rank closed ring only, the local kernel can instead run a 2-step algorithm in which each rank writes only to its two 1-hop neighbours.

Declared and present:

Present but undeclared — see "Anything the description does not say":

It is a pure data mover: it does no reduction (the summing is in the external b12x kernel), so "all-reduce" in the kind names names the algorithm the kernel drives. Step1 and step2 are independent ops from the proxy's point of view (ops_posted += 1, :1368); the kernel's flag waits are the only sequencing between them.

Anything the description does not say

  1. CPU pinning and thread naming — pin_high_capacity_cpus() (roce_proxy.c:1702-1767: reads /sys/.../cpu_capacity, keeps CPUs within 90% of max capacity, midpoint fallback, requires ≥2 selected and < count) plus pthread_setname_np(pthread_self(), "flare-roce") (:1772-1773). This is exactly PR #576's roce_proxy.c hunk, which #576 says is vendored from merged local-inference-lab/flashinfer#156 (335459b2), and which original-el8 also submitted as #633 (closed as duplicate of #576, 2026-11-30 12:19). #643 cites no upstream PR for it.
  2. IBV_SEND_INLINE on existing paths — relay mailbox payload and descriptor WRs (:915, :924, :932), relay mark (:1009), one-shot flag (:1168) and one-shot data WR (:1188), pipelined flag (:1493). attr.cap.max_inline_data raised 16 → 256 with a 16 fallback and a fatal minimum of 8, for every QP (:497-514). The description mentions only "per-HCA max_inline tracking", not that inline is newly applied to the pre-existing one-shot and relay traffic of all transports.
  3. post_op ordering change — ring transports now post in two passes, relayed (multi-hop) peers first, direct peers second (:1238-1252), on the grounds that the critical-path hop starts earliest. This changes the existing one-shot path on every ring deployment, ring2 or not; non-ring transports keep one pass.
  4. Idle-loop restructure — on any ring transport, ring_service runs every idle spin unless a ring2 op was last, in which case every 16th; drain_cqs every 16th; non-ring keeps drain_all every 64th (:1794-1814). The previous behaviour was drain_all every 64 spins for rings too. This overlaps #577's "drain relays eagerly" goal and is a behaviour change for every ring user.
  5. 32-byte alignment requirement — ring2 demands a multiple of 32 bytes (:1342) whereas the one-shot path accepts multiples of 16 (:1227); ignition/preparation/collectives.py only enforces 16-byte packing for RoCE capacities, so some message sizes usable today cannot use ring2.
  6. Less eager completion polling on ring2 — post_ring2_step does not call drain_all at the end (contrast post_op → drain_all(c), :1253-1254); it relies on the idle loop and on reserve_limit's drain.
  7. No documentation update — docs/roce-ring.md still describes the proxy's protocol surface and ABI-14 behaviours without kinds 5/6 (:100-114 layout, :161-167, :414-428 implementation table). docs/TODO.txt:80-86 likewise untouched.

Anything the description says that the change does not do

Nothing material found: every declared item is present in the diff. Two nuances: "compatibility … existing cores load and serve unchanged" is structurally true (blob and ABI untouched) but says nothing about mixed-version proxies (below); and "batched completion signaling … statically verified against ROCE_SEND_DEPTH with queue slack for relay ops and ring ACKs" is asserted at compile time, not measured.

The why

The problem is real and traceable in-repo: the ring transport reaches non-neighbour ranks only through a CPU-driven mailbox relay. roce_proxy.c:196-198 describes the design ("Only the two cable-neighbor QPs connect. Non-neighbor writes cross CPU-driven, bounded RDMA mailboxes"); ring_relayed/ring_service implement it (:348-360, :1039-1120); docs/roce-ring.md:116-142 documents the hop-by-hop protocol and :134-137 warns a relay ack does not mean the destination GPU consumed the data. At world=4 every rank has exactly one 2-hop peer, i.e. one third of a one-shot allreduce's writes take a relay hop.

How long and how widely wanted:

Recent activity

Recent commits to helios/native before this PR: ba3afb13 2026-11-28 (Luke Alonso, #589, dlopen shim + byte-identity rule) · dc0d40e0 2026-11-19 (Luke Alonso, RoCE/TP lifecycle hardening) · 999c6159 2026-11-18 (Iein Valdez, #325 relay flag ordering) · a5b3b2b0 2026-11-13 (jetnet, #279 ABI 14) · e774a468 2026-11-10 (Jason Cook, #251 ABI 11) · 3c80cb6d 2026-10-23 (FujitsuPolycom, #40 chain serving) · a36480c7 2026-10-16 (Jason Cook, introduced the neighbour-ring transport this PR extends).

#643 builds on all of the ring transport, ABI-14 lanes/credits, #325's relay ordering and #589's dlopen wiring. It reverses nothing. Base-branch drift is nil for this file (0 commits on main since 0a8c20f touched it), but #576 (rebased to ba2796c0) and #577 (to a7327bc4) are both open against the same file and both still blocked, so merge order among the three is the live risk.

People

Community

Zero comments, zero reviews, zero reactions, no labels, no bots (pr_comments: none; read_item #643: Discussion (0)). The description does carry the mandated four-part structure and a Discord handle ("Discord: lukealonso"), matching docs/design-review.md:150-169 and AGENTS.md:144-150. Interest is currently zero; the sibling PRs in the same file drew sustained review.

Project fit

Lines up:

Does not line up:

  1. Vendored parity (roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364, NOTICE:16-19) — the change edits the vendored source and names no upstream proxy PR.
  2. Evidence standard — charter "Bring real evidence … (#210)" and design-review.md:106-115; the PR gives an absolute µs/call with no main baseline and no served-workload measurement.
  3. Test hierarchy — design-review.md:180-194 asks for --features roce coverage for server-transport changes; the cited runs omit it, so the edited C is never compiled by the cited evidence.
  4. Undeclared scope expansion — design-review.md principle 15 "Reject scope expansion"; the pinning hunk is unrelated to ring2 and duplicates #576.
  5. Documentation not updated — docs/roce-ring.md is the operator-facing protocol description and is silent on kinds 5/6.
  6. Roadmap: nothing on the roadmap mentions ring2 opcodes; the nearest item is "FlashInfer dependency fix (#215) — … keeping builds strictly pinned", which both the un-pinned branch = "main" dependency (pyproject.toml:47) and the non-re-vendored proxy touch.

Claims and evidence

Claim Backing found Assessment
RoceRing2AllReduceLaunch averages 31.8–33.0 µs/call over 88 calls/round, 4× DGX Spark TP4 DeepSeek-V4.1-Flash with flashinfer#192 Absolute figure only, in a node-level nsys trace No baseline against main's oneshot path, no delta, no served-workload numbers; charter #210/design-review.md:106-115 (not opened) ask for a measured speedup over main on a served workload
cargo test --locked --release passed on helios (--features runtime-core,server), flare, flare-cli Not reproducible as stated for this file: roce_proxy.c compiles only under roce (helios/build.rs:67-77; helios/Cargo.toml:27); helios/src/execution/roce.rs tests need --features roce The cited runs do not compile the changed C — the same gap original-el8 flagged as a blocker on #576/#577
Verified end-to-end on 4× DGX Spark, ring2 cores (gb10-tp4-202611301141, …1553, 57 graphs each) and the non-ring2 core (…1503) Kind of evidence design-review.md:252-259 requires No tok/s, latency or error counts, whereas #576/#577 both report tok/s and CX7 port error counts
Existing opcodes 0..4 and wire structures unchanged; existing cores load and serve unchanged Structurally supported: kinds 0-4 untouched (:168-174), blob untouched, ABI stays 14, roce.rs:131 accepts 9/10/11/14 True for existing cores; silent on mixed-version proxies, which fail hard (below)
Declared limitations: non-4-rank rings and non-SM121 NICs not benchmarked Consistent with code (:1336 rejects world != 4) Honest; but the code fails rather than degrades for those cases, which the description does not spell out
CI on head: passed (orientation packet) native-serving.yml: native is x86_64/Windows without roce/libibverbs; rdma only cargo checks flare-cli --features roce,rdma The changed C is not built by PR CI; only release.yml:37-80 (tag/release triggered, arm64 docker with libibverbs-dev) would build it

No test, no doc, no Rust change accompanies the change, and no vendored-parity check script exists in the repo (enforcement is prose in NOTICE:16-19, roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364). .githooks/commit-msg requires a Design-Signed-Off-By: …; design-review=<digest> trailer; whether the branch commit carries a current digest is not visible from the PR page (a stale digest has blocked reviews in this area before).

Reach

Process

Open, not draft, labelled "ready for review"; single commit on branch sm121-roce-ring2-proxy; opened and last updated in the same minute on 2026-11-30, i.e. effectively hours old at intake. No labels, no assignees, no reviewers, no reviews, no reactions, no Autobot case file.

CI: head-commit CI passed, but the only PR-triggered workflows do not compile the changed C (native-serving.yml native job, lines 13-99, x86_64/Windows, no libibverbs, helios tests --features runtime-core,server; rdma job, lines 101-113, installs libibverbs-dev but only cargo checks flare-cli with --features roce,rdma). The aarch64 build of roce_proxy.c is exercised only by release.yml:37-80 on tags/releases. No -Wall/-Werror in helios/build.rs's cc::Build.

Merge-order risk: #576 (same C hunk) and #577 (same reserve()/budget/drain) are both open, both still blocked, and #577 additionally waits on external flashinfer#157. Any order requires rebasing the vendored file, and a later #576 re-vendor from flashinfer 335459b2 could revert #643's pinning copy.

Open questions / could not be found

  1. Which upstream FlashInfer revision or PR contains KIND_RING2_STEP1/2, post_direct_striped_batched, RING2_SIGNAL_STRIDE, the inline changes and pin_high_capacity_cpus()? No citation given; local-inference-lab/flashinfer is not searchable from here. Without it the vendored-parity rule (roce_proxy.c:6-8, docs/roce-ring.md:361-364, NOTICE:16-19) cannot be satisfied or checked.
  2. The baseline: what does the same op cost on main's oneshot path on the same 4× DGX Spark? The PR gives 31.8–33.0 µs/call but no comparator, so the "perf" in the title is unquantified.
  3. Number and content of the hyperflare-recipes collective-selection PR (cited without a number) and whether flashinfer#192 is merged — both decide whether the opcodes are ever exercised.
  4. Whether the branch commit carries a current Design-Signed-Off-By design-review digest (not visible from the PR page).
  5. Whether kinds 5/6 are exposed through any capability/negotiation check the proxy could use on a mixed cluster — none was found in roce_proxy.c; if the FlashInfer side adds one, it is not in this diff.
  6. Not relevant after checking: #232, #271, #324 (superseded by #325), #506 (shared hardware only).

Leads from the orientation packet

Followed: #577 (substantive conflict), #576 (duplicated hunk), #633 (third copy of the same hunk, closed as duplicate), #34 (motivation, different mechanism), #325 (predecessor edit in the same code, not reverted), #589 (parity rule + dlopen wiring the PR depends on), #251/#279 (the "upstream first, then vendor" pattern), #215 (background for the un-pinned flashinfer source), "CI passed" (qualified: does not compile the C). Not relevant: #506, #232, #271, #324, and same-author #644/#645 (no code overlap).