perf(hwrt): decode eligible quant24 vertex snapshots on GPU #595
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!595
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-595"
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 14:10 UTC · original
tommiehansen:perf/hwrt-quant24-snapshot→main· +26340 −90 · 35 files · 43 commits · draftScope
Experimental opt-in
VICTORY_HW_RT_QUANT24_GPU=1. Reuses the existing sanitize pipeline and fence-tracked work leases to decode non-widened quant24 geometry on the GPU. The CPU still snapshots the exact title bytes at the original read point, so this is not a GPU-direct guest-memory read optimization. Small, unaligned, widened or unavailable inputs retain the CPU path.The production decoder and native parity fixture share one HLSL kernel. NaN classification, axis permutations, original conservative demotion exclusions and fallback are retained. The isolated candidate includes byte-exact WARP tests.
Evidence
Native parity CI at
6f71dae: exact GPU decoder fixture passed, CPU quant24 tests passed, all-targets cargo check passed. WARP is software execution, not physical AMD performance evidence. No gameplay FPS or net BLAS build speedup is claimed. Actual activation, GPU timing, FMA/subnormal parity on GFX11/GFX12, lifetime and cumulative stack checks remain required.Latest pinned validation
Windows native CI, candidate
4b1733b8c2d3a4440e9b9f661cbb1787ec04b179: exact WARP parity, both CPU quant24 tests and all-targets checks passed. This is correctness evidence only; no measured production activation or timing improvement yet. Remains draft for external testing.Dependencies
Draft; do not merge independently. Current HWRT replacement foundation
621120band #429b07015e; #452 compatibility remains to be tested. Isolated change. Main-based diff includes unmerged prerequisites. Strip those when the foundation lands.Follow-up
c726fd6Read the header and packed vertex bytes directly into private mapped list scratch at the same read point, avoiding two temporary Vec allocations and copies. Failed reads leave unused scratch and return to the existing CPU fallback. New exact WARP parity fixture uses 257 vertices and 24 paired mapped-read blocks at 2 KiB, 64 KiB and 1 MiB. CI 47538902255 passed (see below). Earlier parity is pinned to
4b1733b; no new performance claim. Preserve stack dependencies.Completed mapped-scratch validation —
c726fd6CI 47538902255 passed exact 257-vertex WARP parity and all 24 paired mapped-read blocks. Median of per-block A/B means and paired median change:
This measures the isolated CPU snapshot copy, not end-to-end GPU decode + BLAS execution. Actual production BLAS activation, net cost, and cumulative stack compatibility remain concrete blockers; no physical AMD/FPS claim.
Combined-stack verification (2026-12-05)
Audit revision
8e3a40a13e21b9d8086fe63a774ccdec69dd40aacombines #429, #452, #602 and #595. CI 47543601838 passed 34 CPU tests, exact WARP decoder execution and all-target compilation. This validates the tested stack, not end-to-end BLAS performance. Retain draft until representative net preparation/build cost is established.End-to-end BLAS audit — 2026-12-05
Audit revision 5c73b86 extends the validated combined stack with paired production
execute_blas_batch/ synchronous submission timings, eight geometries (including small CPU fallback), 0/4/8 refits, activation and build/refit counter assertions, and independent analytic ray-query hit/miss/primitive/distance verification. CI 47548814056 is in progress. Explicit DXR capability skip is not performance evidence. No repeated decoder-only validation or modifications to #429/#452/#602. Retain draft pending actual representative results.CI 47548814056 compiled the full release test but the native process exited with STATUS_INTEGER_DIVIDE_BY_ZERO (0xc0000094) before reporting any timing or oracle result. No benchmark claim. Audit revision 7d09f47 adds stage diagnostics around host/manager initialization, empty TLAS, batch recording/execution and oracle. CI 47549794652 running; root cause remains unconfirmed.
Mixed BLAS benchmark diagnosis
Diagnostic run localized the integer divide-by-zero to initial empty-TLAS construction before Quant24 decoding. Isolated test head compares original zero-instance TLAS with a test-only valid mask-zero BLAS sentinel and requires exact empty-scene 24-ray correctness plus all 96 paired BLAS measurements. CI pending. No production workaround, no waived failure, no net timing claim.
Indirect signature isolation
Independent WARP reproduction isolates the initialization failure: dispatch-only, constant+dispatch and SRV+dispatch pass; SRV+constant+dispatch fails E_INVALIDARG at both 24- and 32-byte stride; constant+SRV+dispatch succeeds. The audit stack now changes the signature and both packed writers together (
8c365b9), preserving the full manager initialization and exact 24-ray/96-sample gates. New CI. No net BLAS result yet; original zero-instance TLAS crash remains a separate issue.Production BLAS follow-up (2026-12-05)
CI 47559915336: masked empty TLAS + reordered indirect signature, 96 exact measurements with ray-query oracle. Median paired CPU prep reductions 90.60%, 89.68%, 89.38%; total time regressions +0.41%, +0.91%, +1.63% (full/half-refit/all-refit). No net speedup claim. Original zero-instance TLAS still fails. CI 47561328086 evaluates 4096/16384 vertex admission cutoffs, retains the original negative control; audit branch only, not a production default change.
Admission follow-up: 16384 cutoff failed exact mixed CPU/GPU BLAS oracle (instance 2 ray 0 missed, expected hit) in CI 47561328086. Keep draft; no threshold selected or production defaults changed. Original empty TLAS remains broken. 4096 arm pending at this checkpoint.
..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.