Skip to content

tools/asahi: follow the CLPC dense GPU floor in the demand test - #617

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
hostfix/clpc-gpu-demand
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
hostfix/clpc-gpu-demand

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The CLPC sampler gained dense light GPU work (264558d) and floor release counters (87e3a4d). clpc-gpu-demand-tests.py still extracted the old bodies and stopped compiling. Two of its mutations (streaming, PMP backoff) no longer matched the driver, so they tested nothing.

  • Extracts the dense and counter helpers and gives the fake GPU a submission sequence.
  • New T8140 checks: dense submissions earn the floor, one sparse or late period ends the streak, release/return counters follow the PMP backoff.
  • Stale mutations rewritten; new controls omit-dense-demand, dense-ignores-late, uncounted-floor-return; a mutation that no longer changes the source is now an error.

Before: error: implicit declaration of function 'apple_clpc_gpu_dense'
After: PASS plus 8/8 negative controls killed.

Evidence (buildbox, python3 -I, logs in aurora-ctl/reports/hostfail-20261030/) on integration/aurora 71b3fdb. The same change passes on aurora-wip 6a42fae, where tools/asahi is identical. Test-only change, no driver code touched.

🤖 Generated with Claude Code

The CLPC sampler gained dense light GPU work (264558d) and floor
release counters (87e3a4d). The host test still extracted the old
bodies, so it stopped compiling. Two of its mutations had also gone
stale: the streaming and PMP-backoff strings no longer appear in the
driver, so those controls tested nothing.

Extract the dense and counter helpers, give the fake GPU a submission
sequence, and check that dense submissions on T8140 earn the floor, that
one sparse or late period ends the streak, and that the release and
return counters follow the PMP backoff. Rewrite the stale mutations
against the current code, add controls for the new paths, and refuse
any mutation that no longer changes the source.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant