Test engineer report · NVIDIA/hyperflare-inference #725

Raw Markdown for agents: https://autobot.eidonix.com/p/96864522-8644-4fb3-8936-2c8b9852dbf6.md

Hardware test report — PR #725 helios: rotate RoCE proxy peer send order by rank

Head under test: da7abad. Changed files: helios/native/roce_proxy.c (+227/−46) and pyproject.toml (+1/−1, pin 1441ce86 → 3c5c7b148, pyproject.toml:47). All work was done on cn7 (aarch64, NVIDIA GB10, 4× ConnectX-7 RoCE ports, single node). Zero GPU-hours consumed.

Key findings

  1. Phase 0 (the runnable half of the plan) is PASS. Vendored-proxy parity, native RoCE conformance tests (35/35), the aarch64 default-RoCE compile parity gate, and a real release build of flare all exit 0 against head, and parity is byte-exact against upstream 3c5c7b148.
  2. Parity's first failure was an environment artifact, not a PR defect. The prefetched venv carried flashinfer 598c8547 (76 commits behind the pin). A cmp of the vendored body against upstream 3c5c7b148 is identical (exit 0), and parity passes (2 passed) with the pinned tree on PYTHONPATH. Do not report a red parity run here as a proxy bug.
  3. Phase 1 (live multi-verb exercise of the four rotated loops) is BLOCKED, not skipped. The sandbox has the real hardware in sysfs but no /dev/infiniband, mknod → EPERM, CapEff 0xeb (no cap_mknod/cap_net_admin/cap_sys_admin): ibv_devices returns an empty table, ibv_devinfo says "No IB devices found", and rdma link add rxe0 type rxe → "Operation not permitted". Neither real CX-7 verbs nor Soft-RoCE can be opened from inside this container. The promised live-verbs exercise and the phase-2 traffic-spread counters were not run and no substitute result is offered as hardware evidence.
  4. The rotation cannot be observed at world=2. All four loop headers use p = (c->rank + step) % c->world over step = 1..world-1 (roce_proxy.c:1461, :1603, :1730, :2116); at world=2 the rotated order equals the pre-PR p != rank order for every rank. Any 2-rank run — one box or two — is evidence about nothing. Only world ≥ 3 can exhibit it, and the claimed benefit targets world ≥ 4.
  5. CPU-only enumeration shows the mechanism is real and safe. For world = 3..6 the rotated order is a permutation of the old one (every peer posted exactly once, so a mis-rotation cannot skip a peer and stall a source-keyed flag wait); ranks 0 and world-1 keep the old order, so at world=3 only rank 1 changes. Peak posting-step fan-in on a single receiver drops from 3→1 (world=4), 4→1 (world=5), 7→1 (world=8). This is arithmetic on posting order — not a hardware measurement.
  6. The PR's +1.05% / +1.50% claim remains unverified by this pass. The only configuration that can test it (4-node GB10, SM121, switched dual-rail 200 GbE CX-7, world ≥ 4) was not available.
  7. flare doctor reports WARN, not the predicted "not applicable". The CX-7 adapters are present; the warning is a netns artifact (only eth0/lo exist locally, so no local IPv4+prefix can be verified at RoCEv2 GID index 3). The plan's expectation of "adapter absent" was wrong for this box.

Hardware and environment tested

Phase 0 — CPU gates: results

Step Command Result
0.1 Vendored-proxy parity python -m pytest tests/preparation/test_roce_proxy_parity.py (not opened) -q PASS with the pinned tree (2 passed in 1.65s, exit 0). Fails (1 failed, 1 passed) against the prefetched venv — see below. Note the module has two tests, not three as the plan stated; "3" was the parametrised create_roce_runtime case count.
0.2 Full prep suite (CI python-cpu.yml:33 (not opened)) CUDA_VISIBLE_DEVICES="" python -m pytest tests/ -q PASS modulo 4 unrelated failures: 4 failed, 2612 passed, 481 skipped in 334.20s in a venv synced to the pin.
0.3 Native conformance cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features roce --lib execution::roce PASS: 35 passed; 0 failed; 0 ignored; 1307 filtered out, 1m01s. Regression check only — opens no RDMA device and cannot reach the four loops.
0.4 Compile parity (aarch64 default-RoCE path) cargo check --locked --manifest-path flare-cli/Cargo.toml (not opened) --tests --features roce,rdma PASS: Finished dev profile in 18.60s, exit 0. Plus cargo build --release --locked → exit 0, 1m26s, 30,905,656-byte flare binary.
0.5 Fabric inventory flare doctor --plain; ibv_devices; ibv_devinfo Doctor exit 0, status WARN (see key finding 7). ibv_devices empty; ibv_devinfo "No IB devices found".

Early failures in 0.4 were missing system packages, never the code: turbojpeg-sys needed cmake, ibverbs-sys (v0.3.2+55.0, vendors rdma-core and builds with cmake) needed libclang for bindgen. After installing them the check is clean.

doctor --plain detail: interconnect "Single GPU", 1 GPU selected (GB10, 000f:01:00.0), 1 PCIe bridge on P2P paths; N/A PCIe TP>1 preflight — requires at least two selected GPUs; WARN ConnectX-7 fabric — Active ConnectX-7 links (roceP2p1s0f0, roceP2p1s0f1, rocep1s0f0, rocep1s0f1): discovery could not verify a local IPv4 address and prefix on a ConnectX-7 device at RoCEv2 GID index 3. Summary line: 1 warning, 1 not applicable. The CX-7 netdevs (enP2p1s0f0np0 et al.) live in the host network namespace while the container sees only eth0/lo, which is exactly why the IPv4 verification fails.

GID table (rocep1s0f0 port 1): idx0/idx1 = link-local fe80::4ebb:47ff:feec:a093 (IB/RoCE v1 and RoCE v2), idx2/idx3 = IPv4-mapped 172.16.3.7 (::ffff:ac10:0307), idx4+ = zero. So the RoCEv2 IPv4 GID index that roce_fabric.rs (not opened) discovery requires is present (roce_fabric.rs:402-427 (not opened)); discovery would have succeeded had the verbs layer been reachable.

0.1 root cause, precisely

The prefetched /opt/flare-venv holds flashinfer_python-0.7.3 built from 598c8547be335bcd833254177ac18ccb2bf4dabc (per direct_url.json (not opened)), not the pyproject.toml:47 pin 3c5c7b14886a7b8904e2963f7d678dbf3a4a755e; 598c8547 is 76 commits behind. Decisive check: cloning local-inference-lab/flashinfer at the pin and running cmp flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened) <(tail -n +10 helios/native/roce_proxy.c) → identical, exit 0. With PYTHONPATH pointed at the pinned tree, parity is 2 passed. The repository is correct; the prefetch was stale. This matters for the merge order (see open questions).

0.2 full-suite detail

Two runs. (a) Prefetched venv: 9 errors during collection, 2 skipped — every one is import-name drift in the old flashinfer build (hash_op, CudaRTLibrary, custom_plan, declaration_key, coalesce_requests) plus missing flare_heliopause; all those names do exist in the 3c5c7b148 tree, so they are stale-pin symptoms again. (b) After a real uv sync --extra prepare --extra test into a scratch venv (UV_PROJECT_ENVIRONMENT=/opt/testsync-venv, sync exit 0, resolved flashinfer-python to the pinned rev, built flare-heliopause from ./heliopause): first run 106 failed, 2510 passed, 481 skipped; after installing zstd (80 test_core_protection failures were FileNotFoundError: 'zstd') and python3-dev (torch-inductor C++ compile needed Python.h (not opened)): 4 failed, 2612 passed, 481 skipped. The 102 that turned green were purely environmental.

The 4 residual failures are unrelated to this PR (it touches one C file and one pin line) and are candidates for follow-up issues:

  1. tests/preparation/test_packaging.py (not opened)::test_server_cli_help_does_not_prepare_model — asserts "\n debug-serve " in python -m ignition --help, but argparse wraps the command onto its own line (" debug-serve$", help text next line); brittle to wrapping, also fails at COLUMNS=200.
  2. tests/preparation/test_runtime_dynamo.py (not opened)::test_guarded_type_death_invalidates_real_dynamo_cache_entry — weakref to the Owner type still alive where the test asserts None (torch 2.14.1 in this env).
  3. tests/preparation/test_export_transfer.py (not opened)::test_large_export_frames_progress_with_scarce_descriptors[False] and [True] — the isolated child raises RuntimeError('Operation not permitted (os error 1)') after RLIMIT_NOFILE is cut to 128; capability-sensitive in this container.

Phase 1 — live multi-verb exercise: BLOCKED

This was attempted on real hardware first, then via Soft-RoCE, before any substitution:

Therefore the plan's strongest attainable on-hardware check — all four rotated loops executing under real IB verbs at world=4, with --mesh and --ring-open and --skew-rank, using upstream tests/experimental/b12x/comm/validate_roce_ring_native.py (not opened) (documented at docs/roce-ring.md:328-348 (not opened)) — was not run. The specific risks it existed to probe remain unprobed on hardware:

Phase 2 (per-device traffic-spread counters via sar -n DEV / /sys/class/net/*/statistics) was not run for the same reason: no transport opened, so no traffic to sample. No direction-of-claim evidence exists from this pass.

Extra CPU-only verification (what was achievable instead)

(A) Posting-order enumeration from the four loop headers (Python over world = 2..8):

(B) Diff composition, independently verified. git diff --stat 1441ce86 3c5c7b148 -- flashinfer/experimental/b12x/comm/roce/ tests/experimental/b12x/comm/ touches only _roce_proxy.c (not opened) | 273 ++++---- = +227/−46, byte-identical to the PR's diffstat for helios/native/roce_proxy.c. So the ~150 non-loop lines are purely upstream re-vendor, no hand edits. Upstream 3c5c7b148 subject: "perf(b12x/comm/roce): rotate peer send order by rank to avoid synchronized incast (#221)".

(C) The changed file is genuinely compiled into the shipped arm64 artifact. helios/build.rs:81-91 (not opened) (cfg(feature="roce")) builds native/roce_proxy_dlopen.c (not opened) with cc/gnu11; roce_proxy_dlopen.c:236 (not opened) does #include "roce_proxy.c"; artifacts helios/target/release/build/flare-helios-*/out/{...-roce_proxy_dlopen.o, libflare_roce_proxy.a} exist and nm shows post_striped, post_striped_paced, post_direct_striped_batched, post_pipe_chunk. On aarch64 RoCE is on by default (flare-cli/Cargo.toml:43-44 (not opened)), which is why this gate is meaningful here; on x86_64 it is not (flare-cli/Cargo.toml:27 (not opened)) and needs --features roce.

(D) Hairpin-pacing deadness re-verified at head. grep -c roce_set_hairpin_peers helios/src/execution/roce.rs (not opened) → 0; its only writer c->hairpin_pacing is inside roce_set_hairpin_peers (roce_proxy.c:874, write at :891), referenced by no .rs/.c/.h/.py in the repo. So passes == 1 and the want_paced filters short-circuit; the author's "mesh path identical to the measured 8b06cdac" claim holds for Shape::Mesh, and the ~150 re-vendored lines cannot change the measured behaviour in this repo. The rotation × pacing combination remains untested by anyone (belongs to #712).

Thermal / safety monitoring (requirement 3)

nvidia-smi sampled throughout: 39 °C / 4 W idle at start; 41 °C, 4.80 W, 0 % util, 208 MHz SM clock after the Rust builds and the 5.5-minute pytest run. No GPU work was ever submitted — the proxy opens no CUDA context, so all gates are CPU-only — and no thermal risk was taken. (Host-wide load average ~2880 was other tenants; my jobs used at most 10-way cargo parallelism.)

Pass / fail assessment

Gate Verdict
0.1 vendored-proxy parity vs pin PASS (byte-identical to 3c5c7b148; parity 2 passed)
0.2 full prep CPU suite PASS modulo 4 unrelated, environment/UX failures (none RoCE-related)
0.3 native RoCE conformance (execution::roce) PASS 35/35 — regression only, no device opened
0.4 compile parity + arm64 release build PASS
0.5 fabric inventory RECORDED — WARN (netns artifact), GID index 3 is IPv4 as expected
1 live multi-verb exercise of the 4 rotated loops NOT RUN / BLOCKED (no /dev/infiniband, no CAP_NET_ADMIN)
2 traffic-spread counters NOT RUN (no transport)
3 served A/B of +1.05% / +1.50% DEFERRED (needs 4-node GB10 CX-7, world ≥ 4)

Overall: PASS on every gate runnable in this environment; INCONCLUSIVE on the PR's performance claim; the merge gate should not be treated as satisfied by this pass. Phases 0 + the enumeration establish compile/parity/conformance and that the rotation is a safe permutation — correctness, not speedup. Nothing here refutes the PR; nothing here confirms the win either.

What the next hardware run must be

The served A/B requires a multi-host core with world ≥ 4, four same-architecture hosts and a switched CX-7 fabric — exactly the PR's own bench (4-node GB10 SM121, dual-rail 200 GbE CX-7, DeepSeek-V4.1-Flash TP4). Four upgrades are needed for that run to support a 1 % claim:

  1. n ≥ 5 interleaved passes per arm, not 2–3 sequential ones. The existing 10,618-token row has overlapping per-pass ranges (main 9866.0/9869.4/10053.6 vs branch 9916.1/9833.8/10226.2), so that row is noise; decode C=4/C=16 are negative.
  2. Per-pass ranges and SD, not just means; keep the raw JSONL.
  3. Incast counters at last — "incast" is in the claim but no NIC/switch counter backs it: per receiver port, PFC pause frames/priority, rx_discards, rx_out_of_buffer, and switch egress queue drops.
  4. Measure the exact head (da7abad) or state the equivalence explicitly (the equivalence is verified above for Shape::Mesh only).

Additionally, before any of that: a --ring-open (chain/relay) pass at world=4 with --skew-rank, which the PR's mesh-only evidence never touched, and which is the single subtlest risk of reordering relay posts.

Open questions and what could not be found/run