Explore scratchpad · NVIDIA/hyperflare-inference #581

Raw Markdown for agents: https://autobot.eidonix.com/p/7befe017-6226-4ba2-8b54-2a16fcf5379f.md

#1 [high] Change: what PR #581 does, size, mechanics

PR #581 "ignition: set USE_NODE_PRIORITY flag on exported CUDA graphs" by FujitsuPolycom, branch perf/ignition-export-use-node-priority, head 61f64f18, base main, +137/-7, 3 files.

Diff (ignition/preparation/runtime_core.py:192-243):

Tests: tests/preparation/test_capture_graph_metadata.py Fake CUDAGraph gains exec_flags field and monkeypatches runtime_core._executable_instantiation_flags; asserts combined 1|8=9, 0->8, flags=0 preserves 1, None leaves attribute absent, unsupported exec bit 2 rejects, bad requested bit rejects before mutating (instantiations==0 and no retained objects). New test test_capture_forwards_export_sets_node_priority_instantiation_flag asserts capture_forwards-exported prefill/decode both carry instantiate_flags=9. tests/preparation/test_recorded_export_graph_cuda.py:82-92 now asserts flags_by_name == {"decode": 9, "tune": 1} on real CUDA.

Nothing else in the repo calls record_export_graph with the new kwarg: default 8 therefore applies to every caller (verified via search: only runtime_core defines it; capture.py imports it).

#2 [high] Project fit: charter evidence requirement vs PR's perf-style claim

Charter (read_charter) vs PR:

#3 [high] Community: voipmonitor's CHANGES_REQUESTED review of #581

Review by voipmonitor (COLLABORATOR, priority contributor per charter), 2026-11-28 22:13, CHANGES_REQUESTED (the only discussion on #581). Independently verified by reviewer:

  1. [Major] USE_NODE_PRIORITY is a per-graph-exec instantiation flag, so it "globally activates CTA-level preemption for every kernel captured on ScratchArena.auxiliary_stream (ignition/preparation/scratch.py:83-105) across all recipes", not just small TP collectives; asks for end-to-end exported TP core served via flare run plus a Helios load+replay check asserting cuGraphExecGetFlags == 9 (Principle 12).
  2. [Major] record_export_graph does not validate keep_graph=False / _flare_graph_metadata graphs (runtime_core.py:208-242): instantiate_graph supports the metadata path, then graph._flare_instantiation_flags is set unconditionally, so a metadata graph would pass here and fail later in _graphs()/Heliopause with graph=0. Asks for an up-front check getattr(graph, "_flare_graph_metadata", None) is None and int(graph.raw_cuda_graph()) != 0 when instantiation_flags is not None; also suggests clearing a pre-existing attribute when instantiation_flags=None.
  3. [Minor] PR-description inaccuracies (Principle 16): (a) "rejecting unsupported bits on either source before mutating graph state" is false for prior_flags — retain_object and instantiate_graph run before the cuGraphExecGetFlags check; (b) "Passing instantiation_flags=None keeps executable-derived flags for startup tuning graphs" — tuning graphs never call record_export_graph (they use capture_graph + instantiate_graph).
  4. [Nit] Reuse PERMITTED_CUDA_GRAPH_INSTANTIATE_FLAGS in _graphs() (runtime_core.py:284 still hardcodes flags & ~9); cache _Cuda() instead of reopening libcuda.so.1 per graph. Reviewer also states the Heliopause/Helios wiring is already in place: flags & !9 == 0 and kernel-node attribute id 8 = CU_LAUNCH_ATTRIBUTE_PRIORITY, "forward- and backward-compatible with existing cores".

#4 [high] Related work: flag plumbing already on main; #581 only adds the producer

The PR only supplies a producer of instantiation flags; all downstream consumers already exist on main and are unchanged by this PR:

#5 [high] Claims vs code: PR's "Before" is inaccurate; default 8 covers every export

Verification of the PR's "Before" claim, by reading main (read_file ref=main on ignition/preparation/runtime_core.py:192-256):

#6 [high] Why: completes the auxiliary-stream precedence design from #499

Why the change is wanted (motivation, traced rather than stated in the PR):

#7 [high] People & process: author batch of 6 PRs, priority-contributor reviewer, no CI

People / process:

#8 [high] Claims and evidence: tests verified, no served benchmark, risk unmeasured

Evidence ledger for #581 (claims vs backing): Backed by the PR itself (WSL2, claimed):

#9 [high] Reach: default-on for all models/exports, no knob, old cores unaffected

Reach / compatibility / blast radius of #581:

#10 [high] Related work: #245/#262 (closed siblings), #499 (motivation), #585/#588 (consumer churn)

Related work, connected by file/content:

#11 [medium] Process: ready, no CI checks, one review, no drift from main

Process facts for #581:

#12 [medium] Claims and evidence: what the added tests cover and mock out

Test coverage detail for #581 (what the tests actually pin, and what they mock away):