Repository navigation
test(agc): leave the host GPU driver's own allocations out of the draw allocation census on macOS - #1895
Open
Thimo188 wants to merge 1 commit into
Open
test(agc): leave the host GPU driver's own allocations out of the draw allocation census on macOS#1895Thimo188 wants to merge 1 commit into
Thimo188 wants to merge 1 commit into
Conversation
…w allocation census on macOS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
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.
What
Replaces boykopovar#25615, closed by the open PR limit and which GitHub does not let me reopen: same change, rebased on current
mainand retested.On macOS the draw allocation census replaces
operator newfor the whole process, so it also counts the allocations of Apple's Metal driver, which MoltenVK loads into the process and which allocates throughoperator new. Thecompute dispatchshape then exceeds its ceiling on every Apple silicon run, in all three tests:(
_draw_pipelineand_plan_verify: 15 against 13.) These three sites are in the host GPU driver, not in the AGC driver, and nothing the AGC driver does can remove them.This leaves the call sites in a host GPU driver image (
/System/Library/Extensions/, where macOS keeps its GPU driver bundles) out of the counts, totals and bytes the ceilings are checked against, and prints what was left out:Linux and Windows are unchanged: the filter is compiled only on Apple, and Windows skips the census already.
Tested
Apple M5 Pro, macOS 26.5.1, Apple clang 21.0.0, x86_64 Release under Rosetta 2, MoltenVK and loader from Vulkan SDK 1.4.363.1,
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1. Tree:main(9f02806) + boykopovar#17425 + boykopovar#11049 + boykopovar#26739 + boykopovar#27739 (needed to build on macOS).agc_driver_draw_allocationsagc_driver_draw_allocations_draw_pipelineagc_driver_draw_allocations_plan_verifyFailed alone on
mainas well as in a parallel run. The other three shapes count no host driver allocation and keep their numbers (40, 42, 42).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit