Explore report · NVIDIA/hyperflare-inference #672

Raw Markdown for agents: https://autobot.eidonix.com/p/68370299-9aba-4545-acb4-22c576e70400.md

Case file — PR #672 "fix(helios,roce): select RoCEv2 IPv4 GID index per HCA"

https://github.com/NVIDIA/hyperflare-inference/pull/672 · author nepenth (FIRST_TIME_CONTRIBUTOR) · open, "ready for review", opened 2026-12-02 03:04, head c582b10, base main · 4 files, +187/−40 · 0 comments, 0 reviews, 0 labels, no CI checks on head.

Key findings

  1. Fabric::gid_index silently changes meaning, and its one outside consumer is left on the old rule. It used to be the host's chosen index; it is now devices[0].1 — whatever index the first device in sorted name order happens to use (helios/src/execution/roce_fabric.rs:430). flare_heliopause.roce_gid_index() still returns that value (heliopause/src/python.rs:692-704) and still documents the old rule ("3 when every active device has a RoCEv2 IPv4 GID there, otherwise the lowest index at which one does", python.rs:692-693), and prep feeds it into b12x as one host-wide index (ignition/preparation/collectives.py:83 (not opened)). #672 does not touch that path: the serving side becomes per-HCA while preparation keeps an arbitrary single pick — the preparation/serving device-set mismatch that #369 (merged 2026-11-21) was created to unify. Not stated in the description.
  2. The native edit re-forks the vendored proxy one day after #643 re-vendored it. helios/native/roce_proxy.c:6-8 says the file is "Vendored from FlashInfer's pinned preparation dependency (…proxy ABI 14). Keep the source below identical"; helios/native/roce_proxy_dlopen.c:7-9 says "byte-for-byte identical to FlashInfer". #643 (2026-11-30) was merged specifically to restore that parity, and #649 is currently blocked on "the vendored transport is forked ahead of its unmerged upstream". #672 edits roce_hca_t, open_hca, connect_qp, roce_create* with no upstream FlashInfer revision cited.
  3. The "backward-compatible wrapper" is dead code. roce_create is kept at roce_proxy.c:587-601, but the only in-tree caller — the Rust FFI — was switched to roce_create_with_gids (helios/src/execution/roce.rs:46, 205); grep finds no other caller. So nothing in-tree exercises the wrapper.
  4. No mixed-build guard, unlike #232. The rendezvous encode/decode format is unchanged (roce_fabric.rs:531/563), so a mixed cluster (one rank with #672, one without) will not refuse to pair-up front; the old build still drops the second HCA and plans a different rail count, which surfaces as a connect/rail-count mismatch rather than a loud rejection. #232 handled a comparable hazard by adding a field older builds reject.
  5. Evidence is thin where the reviewers here are strict. Verification is two lines of "cargo test … — passed" plus one narrative hardware paragraph (2× GB10, dual CX-7, GLM-5.3-Flash-FP4-Local) with no command, crate/feature set, counts, throughput, baseline, core id or logs. The bar applied in #643 ("30 passed", exact command) and #577 (1,728/1,728) is much higher; AGENTS.md:103-112 and the charter's "bring real evidence / address the root cause" rules (#210, #397) apply. No Design-Signed-Off-By trailer could be confirmed.
  6. CI cannot execute the riskiest part. If triggered, the helios non-roce job runs the new roce_fabric test and the flare-cli job runs the new doctor test, but the only --features roce job is cargo check --features roce,rdma (.github/workflows/native-serving.yml:101-113 (not opened)); execution::roce is #[cfg(feature = "roce")] (helios/src/execution.rs:16-17), so the FFI change and its test (roce.rs:394) are compile-checked only — exactly the gap #643/#577 reviews flagged.
  7. The closest user-visible issue, #151, may not be this mechanism. #151 is 2× GB10, dual active CX-7, "timeout … HCA 0, at sequence 1", GLM-5.3-Flash-FP4-Local — the PR's exact narrative — but in #151's environment both rails sat at GID index 3, so per-HCA divergence does not explain it; #151 is triage:verify-for-closure on #232, and #672 neither cites it nor posts to it.

The change (what it does, and what it does more than it says)

Plain terms: on a multi-rail host each RoCE HCA can carry its IPv4-mapped RoCEv2 GID at a different GID-table index. Before, Helios picked one global index and discarded any active HCA whose GID was elsewhere; a rank that prepared kernels for 2 HCAs while the runtime kept only 1 then disagreed about rail count and flag offsets, and multi-host collectives timed out on sequence 1. #672 makes the index a per-HCA property, threads it through to the native proxy's per-QP SGID, and teaches the doctor to report mixed indices.

Not in the description: the Fabric::gid_index semantic change and its prep consumer (finding 1); the vendored-file divergence (finding 2); the unused wrapper; the mixed-build behaviour; the untouched contract docs; and the doctor's terminal Warn fallback, which still prints a single index (flare-cli/src/doctor/spark.rs:250-256, verified at head).

Said but not done: nothing in the "What Changed" list is absent from the diff. The gap is in the Verification section, which asserts more than it shows (see Claims).

The why

Recent activity

People

Community

Zero comments, zero reviews, zero reactions, no labels, and #672 did not receive the automatic flare-autobot case-file comment that #506, #643, #577 and #649 all got on opening — so no automated review has run. Interest in the underlying problem is documented in #143 (open, P2) and #151 (open, P2, with a workaround suggested by jannerchang and a --roce-hca request), but neither thread mentions #672.

Project fit

Claims and evidence

Claim Backing
"cargo test … — passed" (×2, identifiers blank in the rendered body) No command, crate, feature set or counts. The two new tests are named; the --features roce suite is not mentioned.
"End-to-end hardware verification on 2× GB10 … eliminated the sequence-1 RoCE collective timeout … GLM-5.3-Flash-FP4-Local, greedy parity, C1–C4, full eval suite" Unverifiable as written: no numbers, no commands, no logs. Plausibly the #151 scenario, but not linked.
Previously "dropped any active HCA whose IPv4 RoCEv2 GID lived at a different index" Verified before/after in discover_in (roce_fabric.rs:404-431 vs main's global-index filter).
"rail/flag-offset mismatch" caused the sequence-1 timeout Consistent with the proxy's flag[src][slot][rail] layout (roce_proxy.c:14-21) and #151's "HCA 0, sequence 1"; not demonstrated.
"roce_create_with_gids with bounds validation, roce_create intact as a backward-compatible wrapper" Verified (roce_proxy.c:531-601); wrapper has no caller in-tree, so its "backward compatibility" is untested.
Doctor shows "index N" or "indices [a, b]" Verified (spark.rs:187-200); the terminal Warn path still says "at RoCEv2 GID index {}" (spark.rs:250-256).
gid_index_for falls back to gid_index "for backward compatibility" Verified (roce_fabric.rs:1006-1011, roce.rs:199-203); fallback is .get(index)-style, so a short/empty vec silently degrades to the single index. Only implicit coverage (existing fixtures use Vec::new()).

Also: the posted description lost its inline code spans (file names, symbols and test commands render as blanks), so the two test lines cannot be reproduced from the description alone; there is no Discord: handle; and there are no tests declared for roce.rs, the one changed file CI cannot execute.

Reach

Process

Ready-for-review from the start, single commit, hours old at case-file time. No review, no CI run, no labels, no linked issue, no Autobot case-file comment. Applicable process: docs/design-review.md:298 requires a Design-Signed-Off-By: <identity>; design-review=<4 hex> trailer enforced by .githooks/commit-msg:15 (could not confirm whether c582b10 carries one); docs/design-review.md:252-259 mandates live multi-GPU execution for transport changes — the PR claims it, without commands or logs; AGENTS.md:103-112 requires each claim tied to command, configuration and result.

Open questions / not verifiable from the repository