perf(hwrt): fuse compatible production geometry sanitation dispatches #634
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!634
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-634"
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?
@tommiehansen on GitHub · 2026-12-05 21:30 UTC · original
tommiehansen:perf/hwrt-sanitize-graph-20261205→main· +24725 −89 · 32 files · 41 commits · draftProduction BLAS preparation admits only groups of 5–7 small homogeneous, same-kind/mode tasks sharing source and list-owned scratch resources, with at most two workgroups per task and at most 25% padding. Mixed dispatch fusion has been removed. Bounds, alignment, disjoint destination ranges and dispatch limits are checked; smaller, large, incompatible or over-padded groups retain direct passes. Private retained input leases are excluded. Existing refresh and BLAS transitions are retained. Historical revisions below describe superseded implementations; current acceptance evidence is the final homogeneous-only section.
Opt-in
VICTORY_HW_RT_SANITIZE_GRAPH=1; default off. No original title builder is removed. Exact test compares original and fused GPU passes against independent CPU output, guard bytes, and counters; paired timings for 65/1024/8192 items per task. Pending hosted WARP and physical AMD execution. Seven-to-one is the admitted fixture's command count, not measured title coverage or GPU time.Isolated diff. Based on LOCKhart07's rt-7-reuse foundation beginning with #468; upstream main diff includes prerequisites. Audit CI. Independent of #633.
Historical interleaved production graph admission (superseded):
c42a6afgroups independent interleaved index and vertex operations by identical source/destination resources, up to 8 pending groups of 7 tasks; fallback flushes before incompatible operation, and batch flush preserves BLAS transitions. Reports admitted and eliminated dispatches per frame. Current isolated diff · CI 47571704849. Exact native fixture and compile pending. No title coverage or memory-traffic reduction claim.Historical WARP results and initial adaptive admission (superseded)
CI 47571704849,
c42a6af: 96/96 exact arms. Median host wall time / paired delta:Large workloads regress, so current head
d4834e0rejects tasks over two workgroups and requires >=4 tasks for mixed graphs. Homogeneous same-kind/mode graphs use a 32-DWORD root layout and direct group-Y task selection, with bounded padding; generic fallback preserved. Initial conservative policy, not AMD-tuned. New 2–7 task matrix with mixed sizes, index/vertex homogeneous controls, rejected large workloads, exact guards/counters and separate GPU timestamps, record and wall times. Audit branch. Current validation pending; no physical FPS claim.PRC homogeneous-only follow-up
The isolated candidate 498707a removes mixed production fusion, preserves direct fallback, checks pending destination overlaps and counts actually fused tasks. CI 47574143604: 864 paired blocks / 3456 exact WARP arms. At 2–4 tasks some GPU/recording regressions remain; 5–7 tasks have favorable Standard paired medians in all 16 admitted shapes (wall −8.61–18.73%, GPU timestamps −5.74–38.78%, record time −17.62–69.29%). Candidate 4b35018 restricts final admission to 5–7 tasks while allowing safe partial accumulation. Final Quick/Standard CI 47575305134 pending. These are isolated candidate revisions, not the current upstream PR head. Physical AMD and actual title coverage remain outstanding; keep draft.
Validated homogeneous-only production revision
4b35018CI 47575305134 passed both Quick/Standard jobs, 864 paired blocks and 3456 exact arms. Only 5–7 small same-kind/mode tasks, at most two groups/task and 25% padding, may fuse. All 16 admitted Standard medians improved: wall −7.45–17.92%, WARP GPU timestamps −3.27–35.73%, recording −22.73–72.93%. Rejected shapes use identical direct dispatches (median wall +0.61%, median record 0%; full production planner not timed). One Quick GPU median regressed despite lower wall time. Mixed pipeline removed. Default remains off. Current PR is the narrowed candidate; combined dependency-stack and actual production planner/AMD validation still pending. No gameplay FPS claim.
PRC follow-up (2026-12-05)
Combined replacement-foundation audit 47576475391 passed both Quick/Standard jobs with #429/#452/#602/#633 and the published #634. A pinned physical AMD production-planner fixture and instructions now cover the actual grouping/flush path, exact bytes and counters, both admitted and rejected cases, with real recording timings. Compile/adapter guard CI; physical run not yet performed. Retain draft until actual planner cost and activation are verified.
Physical fixture infrastructure: CI 47577930977 passed pinned compile and negative WARP adapter guard. The physical AMD production planner test has not run.
..in a pattern (clippy) d224598e69clippy's unneeded_wildcard_pattern on `GeomKey::Triangles { vertex_count: _, .. }` where a refit's geometry keys are compared but for their vertex counts (reported on #342). The pattern matches the same values without it. Co-Authored-By: Claude Fable 5.2 <[email protected]>clippy's if_same_then_else on `if i == a { 2 } else if i == b { 2 }` in a test of the named-structures book: one condition now. With it this branch has main's 51 clippy warning lines again (it had 52). Tests, under Wine: hwrt 95 passed. Co-Authored-By: Claude Fable 5.2 <[email protected]>View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.