Repository navigation
Shaders: every loop-cap hit is counted and named like the superstep caps - #30
Merged
ThatRecompDev merged 2 commits intoNov 25, 2026
Merged
Conversation
The loop cap keeps the device alive when a loop runs on, but a program that reaches it draws or computes the wrong thing, and nothing said so unless --trace-pool-stores was on. A hit is a bug to fix where the wrong input or translation comes from, so it has to be seen on every run. The loop guard now calls loop_cap_hit, which keeps the trace and counts the hit once per wave in dword 3 of the program's slot of the window guard's cap table (unused until now). The loader's cap report names the programs with their waves past the loop cap beside the threads past the superstep block cap and the groups past the round bound. Tests: on WARP, two nested loops of 1,000 iterations (past the compute cap of 65,536) count in the program's slot and bounds of 10 count nothing; the test fails without the count. The loader reads the new dword and reports only what grew. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
nice, every loop-cap hit visible on every run is exactly what we want after today's runaway loops. merged. heads up: main also got a report of the cap table on every 30 s thread sample (not just captured presents), so I merged your loop column into that, worth a look if you touch WindowGuard again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The loop cap keeps the device alive when a loop runs on. A program that reaches it still produces wrong output, and until now nothing reported it unless
--trace-pool-storeswas on. A hit is a bug to fix at the wrong input or translation that caused it, so it should be visible on every run.loop_cap_hit. It keeps the trace and counts the hit once per wave in dword 3 of the program's slot in the window guard's cap table. That dword was unused until now.Tests:
SuperstepCapTableTestsreads the new dword.Docs: the "Loop guard" section of
shader-translation.md.🤖 Generated with Claude Code