Repository navigation
helios,ignition,flare-cli: unify ABI-14 RoCE proxy sync, per-HCA GIDs, and CI parity - #707
Conversation
…d wire roce_set_relay
Why: Manual vendoring of `helios/native/roce_proxy.c` blocked three companion
RoCE transport updates while native serving omitted the two-shot all-gather
relay (`roce_set_relay`) already compiled into the proxy. Multi-HCA hosts with
distinct per-device IPv4 RoCEv2 GID slots dropped active rails during discovery;
switchless closed rings routed large prefill reduce-scatter and shard-gather
traffic over 2-hop CPU mailboxes; `RING_WINDOW = 8` sat below the 2-hop relay
BDP knee without a connect-time window/size guard; and hybrid switch-plus-cable
mesh clusters sent all-gather shards over the switch instead of forwarding over
direct partner cables.
What changed:
- Before: `helios/native/roce_proxy.c` tracked FlashInfer `5a8ceed80c` (single
context GID index, opcodes `0..6`, `RING_WINDOW = 8`, 1168-byte `roce_blob_t`,
`reserve()` at `/6`, `ring_service_slot()` at `/4`, no eager ring drain in
`run_pipe_op`). `roce_fabric::discover_in` required one host-wide GID index,
`Fabric::topology` computed `direct` without a relay plan, and
`RoceTransport::connect` never called `roce_set_relay`.
- After:
- Re-vendored `helios/native/roce_proxy.c` byte-for-byte after its 9-line
header from the unified FlashInfer branch (`#209 + #195 + rebased #157`):
per-HCA `roce_create_with_gids`, 1-hop closed-ring opcodes
`KIND_RING_RS/AG/RSAG = 7..9` with extended `credit_phases()`, `RING_WINDOW =
16` with connect-time `(ring_window, ring_bytes)` validation (`1176`-byte
`roce_blob_t`, preserving `ROCE_ABI_VERSION = 14`), named SQE limits
`ROCE_RESERVE_OPS = 48 < ROCE_RELAY_OPS = 64` with `drain_cqs` polled before
`ring_service` in `drain_all`, and eager `drain_all(c)` in `run_pipe_op`
when `c->ring != NULL`.
- Updated `helios/src/execution/roce_fabric.rs`, `helios/src/execution/roce.rs`,
`heliopause/src/python.rs`, `ignition/preparation/collectives.py`,
`flare-cli/src/doctor/spark.rs`, and `docs/cli-design.md` to select and pass
per-HCA GID indices (`roce_create_with_gids`, `roce_devices()`) and fail
loudly if mixed per-HCA GIDs meet an older FlashInfer lacking `gid_indices`.
- Ported `partners()` and `relay_plan()` into `roce_fabric.rs`, added
`Topology::relay_plan` for `Shape::Mesh` + `Links::All` paired-cable
fabrics, validated relay plans in `RoceTransport::open` preflight, invoked
`roce_set_relay` in `RoceTransport::connect` between `roce_connect` and
`roce_start`, surfaced `, all-gather relay` in `flare-cli/src/cluster.rs`,
and updated `docs/roce-ring.md`.
- Compatibility: `ROCE_ABI_VERSION` remains `14`; existing ABI `9/10/11/14`
cores load without re-export, and `peer_blobs` rejects legacy `1168`-byte
connection records alongside foreign ABIs.
Claimed benefit: Unblocks dual-CX7 mixed-GID serving, enables 1-hop closed-ring
prefill opcodes `7..9` and `RING_WINDOW = 16` relay throughput with preserved
lane-0 relay priority up to `world = 16`, and activates `roce_set_relay` on
paired-cable mesh fabrics without re-exporting cores (expected 25% switch
traffic reduction on 4-rank paired-cable meshes per `_roce_proxy.c` design).
Supporting evidence and limitations: Verified on Linux x86_64 with live active
RDMA HCA `rocep82s0f0`:
- `cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce`:
38 passed, 0 failed (covering `roce_create_with_gids`, `roce_set_relay` FFI
rejection on unconnected context, `roce_blob_bytes() == 1176`, legacy
`1168`-byte rejection, 14 preflight checks, per-HCA GID discovery, and
4/8-rank + LLDP link-local `relay_plan` invariants).
- `cargo test --locked --release --manifest-path helios/Cargo.toml --features roce,runtime-core,server --lib -- --skip frontend::templates --skip template`:
1,831 passed, 0 unrelated failures (1 template-fixture test requires
`FLARE_TEST_TEMPLATE_DIR`).
- `cargo test --locked --release --manifest-path flare-cli/Cargo.toml --features roce`:
247 passed, 0 failed; `flare`: 247 passed, 0 failed; `heliopause --lib`: 229
passed, 0 failed.
- `RUSTFLAGS="-D warnings" cargo check --locked --release` on `helios
(--features runtime-core,server,roce)` and `flare-cli (--tests --features
roce)`: pass (0 warnings).
- Limitations: Multi-host 4x DGX Spark GB10 `flare run` serving, live
paired-cable mesh `roce_set_relay` traffic, and `--features rdma` (whose
`ibverbs-sys` bindgen fails on Arch rdma-core headers) were not executed on
this single-host x86_64 machine; `pyproject.toml` pin bump awaits upstream
FlashInfer merge.
Design-Signed-Off-By: Antigravity (Gemini 4); design-review=2e5b
…ests Why: Previously, no automated check verified that vendored `helios/native/roce_proxy.c` remained byte-for-byte identical to FlashInfer's `_roce_proxy.c` after its 9-line provenance header, and `.github/workflows/native-serving.yml` only ran `cargo check` for `--features roce` without executing `execution::roce` unit tests. That allowed protocol drift and left C/FFI preflight and handshake tests unexecuted in CI. What changed: - Before: `tests/preparation/` had no RoCE proxy parity check or unit test for `create_roce_runtime`'s per-HCA GID dispatch; `.github/workflows/native-serving.yml`'s `rdma` job stopped after `cargo check --tests --features roce,rdma`. - After: Added `tests/preparation/test_roce_proxy_parity.py` (executed by `.github/workflows/python-cpu.yml`) asserting LF line endings, the 9-line SPDX/provenance header, and 0-byte diff between `helios/native/roce_proxy.c` lines 10..EOF and the installed FlashInfer package's `_roce_proxy.c`, plus contract tests for `create_roce_runtime` per-HCA GID forwarding and loud rejection of mixed-GID hosts on older FlashInfer builds. Added a `cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce` step to `.github/workflows/native-serving.yml`. Claimed benefit: Prevents future preparation-vs-serving RoCE proxy drift and executes native RoCE C/FFI and fabric planner unit tests automatically in CI. Supporting evidence and limitations: Verified locally with `PYTHONPATH=<unified-flashinfer>:<flare-worktree> pytest tests/preparation/test_roce_proxy_parity.py tests/preparation/test_core_boundary.py tests/preparation/test_capture_roce_wait.py` (7 passed, 0 failed), `pytest tests/cli` (148 passed, 0 failed), and `cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce` (38 passed, 0 failed). In GitHub Actions `python-cpu.yml`, parity will pass once `pyproject.toml` pins the merged FlashInfer revision carrying `#209 + #195 + #157`. Design-Signed-Off-By: Antigravity (Gemini 4); design-review=2e5b
Why: `tests/preparation/test_roce_proxy_parity.py` enforces byte-for-byte parity between vendored `helios/native/roce_proxy.c` and the installed `flashinfer-python` source `_roce_proxy.c`. Keeping `pyproject.toml` on the prior FlashInfer commit (`5a8ceed80c`) would fail `python-cpu.yml` until the companion FlashInfer PR merges. What changed: Updated `[tool.uv.sources].flashinfer-python.rev` in `pyproject.toml` from `5a8ceed80ccc58e11a4d49ccc910f52967699c09` to `524799c47fca54229c15b6db12261171854a7b7d` (HEAD of `local-inference-lab/flashinfer#213`). Update this revision again to the merged `main` commit if `flashinfer#213` is squash-merged. Verification: Verified `pyproject.toml` parses via `tomllib` and confirmed that commit `524799c47fca54229c15b6db12261171854a7b7d` exists on `local-inference-lab/flashinfer` and matches `helios/native/roce_proxy.c` below line 9 (SHA-256 `1f6b3ea80dd0ebe55aa33f9c3af175c61d5a72af948991c568b485ad1b1c25bc`). Design-Signed-Off-By: Antigravity (Gemini 4); design-review=2e5b
|
A case file has been opened for 707. Future reviews will auto-run 90 minutes after code updates are pushed.
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe per-HCA GID plumbing, the mesh relay-plan derivation with its Rust preflight, the CI parity guard, and the new
Walkthrough
Merge Risk: High · up to
|
…ashInfer, and keep roce_gid_index fallback Why: PR #707 review identified three issues: (1) enabling `roce_set_relay` by default reversed #279's documented serving behavior without a 4-node paired-cable + switch mesh A/B measurement, (2) `pyproject.toml` pointed at an unmerged FlashInfer branch commit before `local-inference-lab/flashinfer#213` merged to `main`, and (3) `flare-cli/src/doctor/spark.rs` retained an unreachable empty arm in `format_gid_indices`. In addition, calling `flare_heliopause.roce_devices()` unconditionally in `ignition/preparation/collectives.py` broke downstream test stubs in `hyperflare-recipes/tests/preparation/test_collectives.py` that provide only `roce_gid_index`. What changed: - Removed `partners()`, `relay_plan()`, `Topology::relay_plan`, `validate_relay_plan`, the `roce_set_relay` FFI call, and the `cluster.rs` relay summary from this branch (preserved separately on `wire-roce-set-relay`), and restored `docs/roce-ring.md` to state that serving does not enable FlashInfer's mesh all-gather relay. - Updated `[tool.uv.sources].flashinfer-python.rev` in `pyproject.toml` to merged `local-inference-lab/flashinfer` `main` commit `1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e` (identical `_roce_proxy.c` body SHA-256 `1f6b3ea80dd0ebe55aa33f9c3af175c61d5a72af948991c568b485ad1b1c25bc`). - Updated `ignition/preparation/collectives.py` to check `getattr(flare_heliopause, "roce_devices", None)` before calling it, falling back to `roce_gid_index()` only when `roce_devices` is absent, and added coverage in `tests/preparation/test_roce_proxy_parity.py`. - Changed `format_gid_indices` in `flare-cli/src/doctor/spark.rs` to take `(first: u32, rest: &[u32])`, eliminating the unreachable empty arm. Claimed benefit and result: Keeps #707 focused on the merged ABI-14 RoCE proxy sync, per-HCA GID selection, and CI parity/test coverage without reversing #279 or breaking downstream `hyperflare-recipes` unit tests. Supporting evidence and limitations: - `RUSTFLAGS="-D warnings" cargo check --locked --release` on `helios` (`--features runtime-core,server,roce`) and `flare-cli` (`--tests --features roce`): PASS (0 warnings). - `cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce`: 35 passed, 0 failed. - `cargo test --locked --release --manifest-path flare-cli/Cargo.toml --features roce`: 247 passed, 0 failed. - `tests/preparation/{test_roce_proxy_parity,test_core_boundary,test_capture_roce_wait}.py`: 7 passed, 0 failed; `hyperflare-recipes/tests/preparation/test_collectives.py -k test_roce_setup`: 2 passed, 0 failed. - Multi-node 4x GB10 serving validation is executed next on the updated binary. Design-Signed-Off-By: Antigravity (Gemini 4); design-review=2e5b
|
Addressed the review feedback at
|
Why
Cross-node RoCEv2 tensor-parallel preparation and native serving share a single C RDMA proxy (
helios/native/roce_proxy.c) vendored from FlashInfer (flashinfer/experimental/b12x/comm/roce/_roce_proxy.c). Three defects and coupling hazards blocked landing the RoCE transport updates:#672bynepenth), 1-hop closed-ring collectives (#649byFujitsuPolycom), andRING_WINDOW = 16with connect-time handshake validation (#577byfordbmorris)—modifiedhelios/native/roce_proxy.cindependently and collided across send-queue reservation limits,RING_WINDOWsizing, and eager ring draining. Upstreamlocal-inference-lab/flashinfer#213merged the unified ABI-14 proxy tomain(1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e), and Flare had no automated check comparing its vendored copy against the pinned FlashInfer revision.helios/src/execution/roce_fabric.rspicked one host-wide RoCEv2 IPv4 GID index and discarded active HCAs whose IPv4 GID lived in a different slot, reducing available rails on dual-NIC ConnectX-7 hosts (#143,#151)..github/workflows/native-serving.ymlrancargo check --features roce, leavinghelios::execution::roceunit tests unexecuted in pull-request CI.Syncing
helios/native/roce_proxy.cto mergedlocal-inference-lab/flashinfer@1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e, threading per-HCA GIDs through Helios/Heliopause/Ignition/flare doctor, adding a byte-parity guard inpython-cpu.yml, and executingexecution::roceunit tests innative-serving.ymlresolves all three while keepingROCE_ABI_VERSION = 14and preserving#279's decision to leave the mesh all-gather relay disabled in serving.What changed
1. Vendored RoCE proxy sync and FlashInfer pin (
helios/native/roce_proxy.c,pyproject.toml,docs/roce-ring.md)helios/native/roce_proxy.cmatched FlashInfer5a8ceed80c(singlegid_indexper context, 2-hop CPU-relayed closed-ringreduce_scatterandgather_shards,RING_WINDOW = 8/512 KiBper rail,1168-byte connect blob without ring-window or region-size verification,ROCE_SEND_DEPTH / 6reserve cap,ROCE_SEND_DEPTH / 4relay cap).helios/native/roce_proxy.cbyte-for-byte below its 9-line provenance header with mergedlocal-inference-lab/flashinfer@1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e(#213, body SHA-2561f6b3ea80dd0ebe55aa33f9c3af175c61d5a72af948991c568b485ad1b1c25bc), bringing in:roce_create_with_gids(..., const int *gid_indices, ...)withNULLand0..=255validation.KIND_RING_RS = 7,KIND_RING_AG = 8,KIND_RING_RSAG = 9).RING_WINDOW = 16(1 MiBper rail), connect-timering_windowandring_bytesagreement inroce_blob_t(1168 -> 1176bytes), eagerdrain_all(c)inrun_pipe_op,drain_cqspolled beforering_serviceindrain_all, and explicit send-queue caps (ROCE_RESERVE_OPS = 48 < ROCE_RELAY_OPS = 64) that preserve lane-0 relay headroom up toworld = 16.[tool.uv.sources].flashinfer-python.revinpyproject.tomlto merged1441ce862ffbc9d8550fdda7ad90e97ca04f4b8eand updateddocs/roce-ring.mdforRING_WINDOW = 16and 1-hop closed-ring collectives while preserving"Serving does not enable FlashInfer's all-gather relay."ROCE_ABI_VERSIONremains14, so previously exported ABI-14 cores remain loadable without re-export. All ranks in a serving job must run the same proxy revision becauseroce_blob_bytes()grew from1168to1176bytes to validatering_windowandring_bytesduringroce_connect.2. Per-HCA RoCEv2 GID discovery and propagation (
helios/src/execution/roce_fabric.rs,helios/src/execution/roce.rs,heliopause/src/python.rs,ignition/preparation/collectives.py,flare-cli/src/doctor/spark.rs,docs/cli-design.md)FabricandTopologystored one scalargid_index: u32;discover_indiscarded active HCAs without a RoCEv2 IPv4 GID at that single index;RoceTransport::opencalledroce_create;flare_heliopauseexported onlyroce_gid_index();ignition.preparation.collectives.create_roce_runtimeforwarded onegid_index; andflare doctorchecked only a uniform host GID slot.3when it holds a RoCEv2 IPv4 GID there and otherwise selects its own lowest RoCEv2 IPv4 GID slot, stored ingid_indices: Vec<u32>aligned withendpoints/hcas.RoceTransport::openvalidates length parity before touching the region and callsroce_create_with_gids.flare_heliopauseexportsroce_devices() -> Vec<(String, u32)>alongsideroce_gid_index().create_roce_runtimeforwardshca_namesandgid_indiceswhenflare_heliopause.roce_devicesandAllReduce.__init__(..., gid_indices=...)are present, raisesRuntimeErrorinstead of silently collapsing rails on mixed-GID hosts paired with legacyAllReduce, and falls back toroce_gid_index()only for external test stubs lackingroce_devices(keepinghyperflare-recipes/tests/preparation/test_collectives.pycompatible).flare doctorvalidates and formats per-device GID indices with non-emptyformat_gid_indices(first, rest).3. Automated parity guard and RoCE CI execution (
tests/preparation/test_roce_proxy_parity.py,.github/workflows/native-serving.yml)helios/native/roce_proxy.cand FlashInfer's_roce_proxy.c, and.github/workflows/native-serving.ymldid not runexecution::roceunit tests.tests/preparation/test_roce_proxy_parity.py(run by.github/workflows/python-cpu.yml), asserting LF line endings, the 9-line provenance header, and 0-byte divergence against installedflashinfer/experimental/b12x/comm/roce/_roce_proxy.c, plus unit coverage ofcreate_roce_runtimeper-HCA GID forwarding, mixed-GID failure on legacyAllReduce, androce_gid_index-only stub compatibility. Addedcargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roceto.github/workflows/native-serving.yml.Cross-rank happens-before analysis (before vs after)
roce.rs:214-345,roce_proxy.c:665-761): Before, ranks exchanged1168-byte connect records without checkingring_windoworring_bytesagreement. After,RoceTransport::openchecksgid_indices.len() == hcas.len()before zeroing the collective region, binds each HCA QP to its own validated0..=255GID index inroce_create_with_gids, and exchanges1176-byte connect records carrying(ring_window = 16, ring_bytes).peer_blobsrejects1168-byte records androce_connectrejects mismatched(ring_window, ring_bytes)beforeroce_startcreates the proxy thread; no collective RDMA write can execute across mismatched ranks.roce_proxy.c:156-231, 1271-1276, 1695-1701): Before,drain_allranring_servicebeforedrain_cqs(risking spinning on an already-completed CQ entry),reserve()allowedROCE_SEND_DEPTH / 6 = 85signaled ops whilering_service_slot()allowedROCE_SEND_DEPTH / 4 = 128, andrun_pipe_opdid not drain ring relays eagerly after posting. After,drain_allpollsdrain_cqsbeforering_service,ROCE_RESERVE_OPS = 48 < ROCE_RELAY_OPS = 64strictly preserves lane-0 forwarding headroom (64 * 3 + 16 * 16 = 448 <= 512, andRING2222 + 192 + 64 = 478 <= 512, statically asserted), andrun_pipe_opdrains ring relays immediately after posting whenc->ring != NULL.pipe ↔ 1-hopcredit ordering (roce_proxy.c:1530-1547, 1665-1694, 1816-1878, 2110-2146): Every rank executes the same op sequencesin order (proxy_main) and only callspost_credits(rank, s)after both its GPU kernel and its proxy (pipe_op_release) finished ops - 1. On a cross-family transition, every rank computescredit = CREDIT_RS(for 2-phaseKIND_TWOSHOT/KIND_RING_RSAGand RS-only ops) orCREDIT_AG(for AG-only ops) and holds its first phase untilcredits_arrived(c, s)confirms every peer entereds. In both 2-phase ops (KIND_TWOSHOTandKIND_RING_RSAG), no rank's GPU kernel writesCTRL_READY_AG = suntil its RS receive flags forsarrive, and no rank posts RS forsuntilcredits_arrivedclearsCREDIT_RS, so RS completion transitively happens-before every AG post and AG forward (the same causal invariant already used onmainforKIND_REDUCE_SCATTER -> KIND_TWOSHOT).Claimed benefit and result
SM121, aarch64) hosts on a dual-rail switchless RoCE ring (--roce-ring) throughroce_create_with_gids, the1176-byte connect handshake, andRING_WINDOW = 16, with zero transport errors, zero request cancellations, accurate 9.6K/19.1K/29.2K cold-prefill retrieval, and matched prefill/decode throughput relative to the installed baseline binary.flare doctor, andRoceTransport::open, while remaining compatible with downstreamhyperflare-recipestest stubs.1168-byte layout are rejected beforeroce_start, and CI enforces 0-byte parity betweenhelios/native/roce_proxy.cand the pinned merged FlashInfer revision plusexecution::roceunit tests.hyperflare-recipes#114core in this PR):KIND_RING_RS/KIND_RING_AG, requiring a core exported withlocal-inference-lab/hyperflare-recipes#114) were measured on 4× DGX Spark in#649/local-inference-lab/flashinfer#195(1.20x–1.46xRS/AG microbenchmarks,+3.76%to+4.32%isolated 8K–128Kflare runprefill), andRING_WINDOW = 16isolated ring collective latency (-6.2%to-9.7%) was measured in#577/local-inference-lab/flashinfer#157.Supporting evidence and limitations
1. Live 4-node DGX Spark (
SM121, aarch64) multi-GPU serving verificationCluster: 4× NVIDIA GB10 (
tachyon.lanrank 0,graviton.lanrank 1,chroniton.lanrank 2,luxon.lanrank 3), 4 active ConnectX-7 HCAs/host (rocep1s0f0,rocep1s0f1,roceP2p1s0f0,roceP2p1s0f1, 2 direct rails per ring neighbor, RoCEv2 GID index 3, MTU 9000).Core: previously exported ABI-14
deepseek-ai/DeepSeek-V4.1-Flash-1017TP4 core (gb10-tp4-202612010121/model.safetensors, 73.5 GiB/rank, 9,462 kernels,--roce-ring --memory-limit=-8GiB --transfer-streams 1).#707(41ad1a43) natively ontachyon.lan(cargo build --locked --release --manifest-path flare-cli/Cargo.toml) and ran native aarch64 unit tests + doctor:cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce: 35 passed, 0 failed.flare doctorontachyon.lan: PASS (4 of 4 active CX7 devices supply IPv4 endpoints for serving at RoCEv2 GID index 3).gb10-tp4-202612010121across all 4 Sparks withflare orbit run ... --executable <pr707-aarch64-binary> --roce-ring:0.3s–0.4sper rank:2 rails per neighbor (experimental CPU relay ring)), served/healthin22s, and ran with 0 warnings/errors across all 4 rank logs andflare_requests_cancelled_total = 0.84ac035clineage,temperature=0.0, seed=42):short_greedy(55 prompt, 128 comp): TTFT0.195s -> 0.212s; exact arithmetic (17 × 23 + 19 = 410) and primes on both.greedy_code(69 prompt, 256 comp): TTFT0.202s -> 0.208s; decode86.0 -> 90.6 tok/s.cold_prefill_8k(9,630 prompt,cached=0, 64 comp): TTFT1.105s -> 1.106s(8,713.9 -> 8,709.6 tok/s); exact final-constraint retrieval.cold_prefill_16k(19,134 prompt,cached=0, 64 comp): TTFT1.868s -> 1.875s(10,241.8 -> 10,205.9 tok/s); decode86.1 -> 95.4 tok/s; exact final-constraint retrieval.#707:cached=0, 73 comp,3.46s): retrieved exact 6-digit passkey847291.128tokens each): all 4 completed in3.971s,0cancellations.#707binary showed minor phrasing variation across repeatedtemperature=0.0, top_k=1requests on this MoE/MTP core; both produced accurate answers and retrieved every prompt needle.2. Local x86_64 Rust, Python parity, and cross-repo checks
RUSTFLAGS="-D warnings" cargo check --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server,roceandflare-cli/Cargo.toml --tests --features roce: PASS (0 warnings).cargo test --locked --release --manifest-path helios/Cargo.toml --features roce --lib execution::roce: 35 passed, 0 failed (covers per-HCA GID discovery/planning,roce_create_with_gidsNULLand out-of-range rejection,roce_blob_bytes() == 1176with legacy1168-byte rejection).cargo test --locked --release --manifest-path flare-cli/Cargo.toml --features roce: 247 passed, 0 failed.cargo test --locked --release --manifest-path heliopause/Cargo.toml --lib: 229 passed, 0 failed.pytest tests/preparation/test_roce_proxy_parity.py tests/preparation/test_core_boundary.py tests/preparation/test_capture_roce_wait.py -vagainst mergedflashinfer@1441ce862: 7 passed, 0 failed (0-byte diff confirmed against1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e).hyperflare-recipes/tests/preparation/test_collectives.py -k test_roce_setup -vagainst this branch'signition/preparation/collectives.py: 2 passed, 0 failed.Limitations and unrun checks
gb10-tp4-202612010121was exported beforelocal-inference-lab/hyperflare-recipes#114, so the live 4-Spark run validates previously exported ABI-14 core compatibility,roce_create_with_gids, the1176-byte connect handshake, andRING_WINDOW = 16, but does not emit opcodes7/8/9(KIND_RING_RS/KIND_RING_AG/KIND_RING_RSAG).3uniformly across their four CX7 ports; mixed per-HCA GID indices are verified via sysfs/FFI unit tests and#672's hardware report.--features rdmafeature was not compiled locally on Arch Linux due toibverbs-sysbindgen struct-size assertions against newerrdma-coreheaders; GitHub Actions Ubuntu 24.04 (native-serving.yml) checks--features roce,rdma.Contributors, superseded PRs, and merge order
This PR consolidates and credits work from
#672(nepenth),#649(FujitsuPolycom), and#577(fordbmorris) against already-mergedlocal-inference-lab/flashinfer#213(1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e). Meshroce_set_relaywiring has been split out for a dedicated follow-up PR once benchmarked on a paired-cable + switch mesh.local-inference-lab/flashinfer#213is already merged (1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e).#707).local-inference-lab/hyperflare-recipes#114to enable 1-hop closed-ringreduce_scatterandgather_shardsin model recipes.Discord: lukealonso