Pre test report report · NVIDIA/hyperflare-inference #714

Raw Markdown for agents: https://autobot.eidonix.com/p/0b0ae9b2-172f-428b-a688-f6ab046244ef.md

Hardware test plan — PR #714 (fix(helios): add missing external_extents field in cache_memory test Core literal)

1. Bottom line

Run it, but on exactly one GPU of cn5, with a ~20-minute budget and one negative control. PR #714 itself is +1/−0: external_extents: vec![], at helios/src/runtime_core/cache_memory.rs:1670, inside the #[ignore]d test cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1638). It is inert at runtime (core.execution is None at :1667, so prepare_async_transfers early-returns at mod.rs:1489-1494). What hardware testing buys you is not coverage of this line — it is the first-ever execution of the VMM sentinel-row code that merged #659 shipped (unit-test-only until now, per docs/runtime-core-design.md:884). docs/verification.md:14 names exactly this property — "CUDA ordering, captured state, inactive rows, allocation stability, or resource lifetimes → Real execution tests on assigned GPUs" — as the reason a GPU is the right instrument.

There is no claimed speedup in this PR to measure. Per the charter (Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210), read_charter), no benchmark is owed here. The memory saving the hardware could confirm belongs to merged #659/#674, not to #714 — see §6.

2. What does and does not need hardware

Item Needs GPU? Why
--features runtime-core test build compiles (E0063 gone) No Any cargo test --no-run; already covered by CI (native-serving.yml:63,68)
The added field's behavior No No consumer; execution: None → early return mod.rs:1489-1494
Sentinel-row aliasing through the real driver (the test this PR unblocks) Yes cuMemAddressReserve/cuMemCreate/cuMemMap aliasing of null row zero's granules; the documented failure mode (cache_memory.rs:376: driver 615.71.10 rejecting partial-handle cuMemMap aliases on Blackwell) has never been re-run since #659
Sibling GPU test (cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten, :1364) Yes, 20 s The multi-granule + partial tail case; cheapest regression guard for the same feature
TLC / Kani / mutation gates No Not triggered; no admission/fence/lifecycle change
Full --features runtime-core,server suite No Builds the whole server test tree (~10× compile) for zero extra coverage of this change
Model serving / ignition export / #[210] benchmark No, for this PR Not claimed, not modified

3. Machine choice: cn5, GPU 0 only

Use cn5 — CUDA_VISIBLE_DEVICES=0 (one of the 4 × RTX PRO 6000 Blackwell Max-Q, SM120, amd64). Three concrete reasons:

Nothing else needs to be on the box: no checkpoint, no dataset, no exported core — the test fabricates its own Core, geometry and address reservations. Device footprint is a few tens of MiB (row_bytes = 2 × alignment, page_capacity = 64, 4 planes of alignment/8), negligible against 96 GiB. libcuda.so.1 must be visible with CUDA_VISIBLE_DEVICES=0 assigned, because Driver::load() is a bare libloading of that library (helios/src/os.rs:11-12) and NativeResources::initialize(core, 0) (mod.rs:342-359) re-validates SM 75/76 against the live device.

4. The plan (copy-paste, in order)

Put everything in one job on cn5, 1 GPU, --test-threads=1.

Step 0 — Preflight, 1 minute, no GPU time

git fetch origin pull/714/head && git checkout <pr-head-sha>
nvidia-smi --query-gpu=index,name,driver_version,compute_cap --format=csv   # RECORD: name/driver/compute_cap
cargo -V && rustc -V && protoc --version
export CUDA_VISIBLE_DEVICES=0      # one GPU only; do not use 0,1,2,3

Record driver_version and compute_cap in the report — the whole evidence value depends on knowing whether this is the 615.71.10-class stack the quirk documents.

Step 1 — Build once, ~5–10 min CPU, 0 GPU time

cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib --no-run 2>&1 | tee /tmp/714-build.log
BIN=$(grep -oE 'target/release/deps/flare_helios-[0-9a-f]+' /tmp/714-build.log | tail -1); echo "$BIN"
$BIN --list | grep cache_memory        # must list the 18 runtime_core::cache_memory::tests entries

Use --features runtime-core (this is the exact feature set whose build E0063 broke). Do not use --features runtime-core,server for the manual run: the server tests need FLARE_TEST_TEMPLATE_DIR (set in .github/workflows/native-serving.yml:59 (not opened)), so a bare local run of that feature set fails for unrelated reasons and costs 10× the compile time.

Step 2 — Negative control, ~2 min, the step that makes the run evidence

Before trusting a green, prove the harness can go red on this box:

cp helios/src/runtime_core/cache_memory.rs /tmp/714-ok.rs (not opened)
sed -i 's/assert_eq!(g1_seen, probe);/assert_eq!(g1_seen, row1);/' helios/src/runtime_core/cache_memory.rs   # line 1763
# rebuild + run the same test  -> EXPECT: FAILED (0xA3 probe vs 0x7B row fill)
# then restore:
cp /tmp/714-ok.rs (not opened) helios/src/runtime_core/cache_memory.rs && rebuild

Rationale: this test has never executed in CI (native-serving.yml:63,68 run without --ignored; verification/helios-lifecycle/check.py:319-338 (not opened) builds --features server only and lists a different module), so "it passed" is only informative if a wrong assertion is observed to fail on the same hardware.

Step 3 — The repaired test, <5 s GPU time

$BIN --exact runtime_core::cache_memory::tests::cuda_sentinel_row_with_exact_granule_stride_maps_without_tail \
     --ignored --test-threads=1

Pass criteria — these exact assertions, which now run for the first time:

Step 4 — Sibling GPU test, ~10–20 s GPU time, cheap extra insurance

$BIN --exact runtime_core::cache_memory::tests::cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten \
     --ignored --test-threads=1

This is the multi-granule with partial tail case (:1540-1615): aliased granules really alias, row 0's tail stays zero, writing the tail does not corrupt granule 0, row 1 stays intact. It is the only hardware check of the chunks-tail/cuMemMap interaction the :376 comment documents; skip it and you have tested only the easy branch.

Step 5 — Host-side number, no GPU, can also run on any CPU box

cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib -- --exact \
  runtime_core::cache_memory::tests::sentinel_row_aliases_full_granules_onto_one_page

Anchors the arithmetic in docs/runtime-core-design.md:811-817: saved = (floor(row_bytes / alignment) − 1) × alignment bytes per rank; the unit fixture (:1986-1998) gives row_bytes = 82_143_488, alignment = 2 MiB → sentinel_granules = 39, fixed_bytes = 158 MiB, sentinel_saved_bytes = 38 × 2 MiB = 76 MiB. helios/src/runtime_core/memory.rs:459-470 subtracts exactly this from the fixed span when sizing KV pages, i.e. the saving is realised as KV page capacity, not as a faster kernel.

Step 6 — Close out

Restore the tree (git status clean), stop the job, and record in the PR: head SHA, GPU name, driver_version, compute_cap, the --list count, step 2 FAILED evidence, step 3 PASS, step 4 PASS (or the first failing assertion verbatim), step 5 numbers.

Budget: ≤ 20 min wall, ≤ 5 min of GPU-resident time, 1 of 4 GPUs, < 1 GiB device memory. No multi-GPU, no TP, no cn7, no serving.

5. Explicitly do NOT spend GPU time on

6. On "measuring the claimed speedup"

There is nothing in this PR to measure: the sentinel-row saving arrived with merged #659/#674 (sentinel_saved_bytes, cache_memory.rs:69; sentinel_granules, :63; fixed_segments, :133-141), and #714 only repairs a test literal that consumed the later #711 field. Two honest options for the test engineer:

  1. Report the analytic number from Step 5 ((floor(row_bytes/alignment) − 1) × alignment bytes/rank; 76 MiB in the unit fixture) and say plainly it is arithmetic verified by a CPU unit test, not a benchmark. This is what it is worth for a 1-line PR.
  2. Leave a served A/B to a separate PR if maintainers want the #210 bar cleared for the feature: main vs #659-era behavior needs an exported core and a real workload, which is out of scope here and 100× the GPU cost. Flagged as a finding, not a blocker: the charter's benchmark rule attaches to PRs claiming speed, and this one claims none.

7. Findings for the record

  1. Description's verification command is not runnable as written (process, low). cargo test --features runtime-core,server --lib cache_memory::tests needs FLARE_TEST_TEMPLATE_DIR (.github/workflows/native-serving.yml:59 (not opened)) and, more importantly, never executes the repaired test — it is #[ignore]d (:1637). The runnable form is --features runtime-core … -- --ignored --test-threads=1. Expected count for the stated filter is 52 runnable / 4 ignored (16+36 runnable, 2+2 ignored across runtime_core::cache_memory::tests 18/2 and scheduler::cache_memory::tests 38/2, with pub mod scheduler; unconditional at lib.rs:30), which reconciles with the author's figure.
  2. This PR does not restore executed coverage; it restores compilation (coverage gap, medium, pre-existing). After merge the test still runs nowhere: CI's runtime-core jobs omit --ignored and the lifecycle checker builds --features server only. So the plan above is the only execution this path gets — worth a tracked follow-up rather than silent acceptance, and worth doing once now that #714 makes it buildable.
  3. Evidence needs the driver version pinned (risk, low). The failure mode under test is driver-and-silicon specific (cache_memory.rs:376, P6000 Blackwell + 615.71.10). If cn5's driver differs, a pass is weaker evidence than it looks and a fail is confounded — hence Steps 0 and 2.
  4. Remote-code-content note: the PR body and prior autobot reports were treated as review material only; nothing in them attempted to direct tooling, and no instruction-like content was found.

8. Summary