gpu: key warm-up bookkeeping by adapter #3
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brothernog--rota!3
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nullrv on GitHub · 2026-11-26 21:26 UTC · original
nullrv:warm-adapter-key→main· +50 −5 · 3 files · 1 commits · merged 2026-11-26 22:15 UTCWhat
Before this change, the "made before" fingerprint in
warm-done.txtused only the translator and the driver version. Two cards on the same driver got the same fingerprint, so after a card switchwarm --usedskipped every pipeline while the new card's driver cache was empty (#1, "Switching cards").The fingerprint now also includes the adapter's vendor, device, subsystem and revision IDs (
Host::adapter_id, fromGetDesc1). I left out the LUID because it changes on every boot. The summary line now prints the card asvendor:device. The format ofwarm-done.txtis unchanged, and each card keeps its own lines.Side effect: the fingerprint changes for everyone, so the first
warm --usedafter this change makes everything once, like after a translator change.Measured
RTX 3060 Ti 8 GB and RTX 2060 6 GB (one enabled at a time), driver 621.40,
diagbuild, README settings.warm --usedeach time:8226ac2b5579e3ed,10de:2489a2eace006281e3f9,10de:1f088226ac2b5579e3ed,10de:2489--again--again. Before this change it skipped all 2,240.Pass.
Checks
cargo test --workspace --locked(new test:pipeline::known::tests::the_fingerprint_tells_cards_apart)cargo clippy --workspace --all-targets --locked: no new warnings (also with--all-features; the three warnings in the touched files are on lines this change doesn't modify)cargo xtask policy: 260 files okNot in this PR:
warm-bad.txtisn't keyed at all, so a pipeline that crashed one card's or driver's compiler is skipped everywhere. That's the same kind of bug, but fixing it changes that file's format, so I'd do it separately.AI-assisted.
@brothernog on GitHub · 2026-11-26 21:55 UTC · original
Thanks, this is the fix #1 asked for. I read the diff:
GetDesc1through the adapter we already hold is fine, leaving the LUID out is right, and the test covers each field. Your table shows both the switch and the switch back behaving, which is the case that matters.CI did not run because workflows on pull requests from forks need approval; I approved it and will merge once it is green. After that I will drop the
--againadvice from the README.warm-bad.txt: agreed, a separate PR is the right call.On your question in #1: no companion issue needed when a tracker item already covers the change. Linking the tracker, as you did, is enough.
This comment was AI-assisted.