Repository navigation
feat(agc): submissions by cause and waits for GPU writes in the summary line #28237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
oneandonlydean
merged 12 commits into
boykopovar:main
from
GabbeHags:feat/agc-summary-submit-causes
Dec 6, 2026
+1,014
−22
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0f049c6
feat(agc): submissions by cause and waits for GPU writes in the summa…
GabbeHags 9ad394f
docs(agc): keep the submit-cause debt entry under 1000 characters
GabbeHags 51329cd
fix(agc): carry an interval's closing submit counts into the next int…
GabbeHags 894bd62
fix(agc): count a commit with an overdue label at the batch cap as la…
GabbeHags 5065a63
test(agc): give the rewound submission's tail its own dispatch
GabbeHags 5cba538
fix(agc): count flip-holding submissions under their submit cause
GabbeHags bcbe391
fix(agc): count submits by cause and GPU-write waits on Windows only
GabbeHags d23b65a
fix(agc): close a window's submit and wait counts with the window
GabbeHags 8f7d517
docs(agc): record that a wait's count and time can land in different …
GabbeHags 6d4e800
fix(tools): reject out-of-range and inconsistent submit and wait coun…
GabbeHags 44f5b0c
fix(agc): register the Windows-only submit cause tests on Windows onl…
GabbeHags ca9a8e2
refactor(agc): trim the submit cause summary change
GabbeHags File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait counts and durations can split across summary boundaries.
AddGpuWriteWait()increments the wait count and then the wait duration. Both updates are relaxed atomics, and neither takes a lock.SubmitWaits()reads the two values separately, also without a lock. A summary boundary that runs between the two increments can record a count without its duration. The next boundary then records the duration with no count. A window or interval can therefore report zero GPU-write waits while showing a positive wait time. Cumulative totals stay correct.Make each count and duration pair update and read as one unit. Use one lock shared by
AddGpuWriteWait()andSubmitWaits(), or use a sequence-protected snapshot. Also add a test that takes a boundary while a wait is recorded.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, but only at a line boundary, and the totals stay correct. Making it exact would put a lock or a sequence counter on the recording path for a diagnostic boundary. Same decision as in #28278 (#28278 (comment)). The debt fragment now records it (a83bd03).