Repository navigation
startup: count acceleration-structure refusals by name in the slot 70 census - #2808
Merged
tedin7 merged 1 commit intoNov 26, 2026
Merged
Conversation
… census as_srv_refusal_name can return as_unaligned, as_not_placed and as_wrong_state, and publish_as_srv passes them to refuse_memory_srv, but neither memory_srv_reasons nor triage_run.py SLOT70_REASONS listed them, so the census report and the triage report counted them as "other". List them after gpu_written_resource (where publish_as_srv checks them) in both tables, keep no resource shape for them (that path never reads the resource description), and update the report-line expectations. The census test now derives the names from as_srv_refusal_name.
tedin7
reviewed
Nov 26, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head 68fdf7e (comment only).
Checked against origin/main:
- The three names match
as_srv_refusal_nameinmemory_srv_as.hexactly (as_unaligned,as_not_placed,as_wrong_state); order inmemory_srv_reasonsandSLOT70_REASONSmatches. - No shape for these reasons is consistent with the existing exclusions: the acceleration-structure path does not read the resource description. Fine to keep as is.
- Both new tests guard the behavior: the C++ test enumerates names from
as_srv_refusal_name, and the Python test reads them from the header, so a fourth refusal that is not listed fails. - No sibling table left out: only
memory_srv_census.handtriage_run.pyhold the list; the summary line in the C++ test and the docs sentence were updated. - No other open or merged PR covers this slice (searched "acceleration-structure census").
Commands run locally (Linux):
python3 tests/startup_triage_run_check.py-> 0 failedpython3 tests/docs_links_check.py-> ok;python3 tests/bidi_controls_check.py-> ok;git diff --check origin/main...HEAD-> clean- Mutation: removing
as_wrong_statefromSLOT70_REASONSmakesstartup_triage_run_check.pyfail (2 failures); restored afterwards.
Not run here: the C++ census test (needs the Windows build); a Win2025 run follows.
AI-assisted; commands listed were executed locally.
Collaborator
|
Win2025 WARP receipt for head 68fdf7e (no update needed, up to date). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
Real-GPU run not available (RunPod stopped). AI-assisted; commands listed were executed locally. |
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.
Change
publish_as_srvinsrc/startup_stubs/d3d12_memory_srv.inlpassesas_srv_refusal_name(refusal)(as_unaligned,as_not_placed,as_wrong_state) torefuse_memory_srv, which callsmemory_srv_census.note. Neithermemory_srv_reasons(memory_srv_census.h) norSLOT70_REASONS(tools/startup/triage_run.py) listed them, so both reports folded them into "other".gpu_written_resourceand beforebuffer_unavailable(the orderdevice_memory_srvreaches them), with a group comment in the style of the existing ones.memory_srv_reason_has_shape: the three reasons keep no shape. The acceleration-structure path does not read the resource description (memory_srv_refusalskips the readability check for such a view, andresolve_as_srv_desctakes only the location and view), so a "shape" built from it would describe whatever the caller left in that argument. This matches the existing exclusions for reasons that do not depend on the description. Question for review: if you would rather keep shapes for these, drop the three extra lines inmemory_srv_reason_has_shape.tests/startup_memory_srv_census_check.cppandtests/startup_memory_srv_diag_check.py, and the sentence indocs/startup-runtime.mdthat lists the reasons without a shape.gpu_written_resourceshift by three. Nothing uses the indexes outsidememory_srv_census.h(lookups are by name).Verification
git grep -n -e refuse_memory_srv -e as_srv_refusal_name -- srcon origin/main. Every reason the.inlcan log: the 16 already listed, plus the three above.console_address_holdreturns onlyconsole_layout_xg_rows,console_layout_without_footprints,console_layout_beyond_xg_size. No other name is missing from either list.tests/startup_memory_srv_census_check.cpp(CTeststartup_memory_srv_census): iterates every nameas_srv_refusal_namereturns (stops at "none"), requires an index belowmemory_srv_reason_count, no shape, and the name in a fresh report withother 0. The hard-coded summary line also changed.tests/startup_triage_run_check.py: the three names added to the every-reason case list, plus a check that reads the names frommemory_srv_as.hand requires them inSLOT70_REASONS.out\pe-env\Scripts\python.exe -B tests\startup_triage_run_check.py:startup triage_run checks: 0 failed.cmake --build out/build/dev --target startup_memory_srv_census_checkthenctest --test-dir out/build/dev -R '^startup_memory_srv_census$': passed.cmake --build out/build/dev --target startup_stream_consumerthenctest -R '^startup_memory_srv_diag_(warp|supported_control_warp)$': both passed (this check parses the census report line).SLOT70_REASONSthe check fails with 4 failures (reported list lacks them, three "SLOT70_REASONS lacks ..." lines).git show origin/main:src/startup_stubs/memory_srv_census.hfails (3x "acceleration-structure refusal has its own census reason", "as_unaligned is reported by name", "summary").Evidence and follow-up
_hardwarevariants ofstartup_memory_srv_diag, the full CTest suite, the Linux CI Python list as a whole. The census has no_controltarget of its own; the controls above were run by hand.AI-assisted.