gpu: batch hash and comparison maintenance with explicit producer ordering #335

Open
opened 2026-11-27 21:12:08 +00:00 by github-bot · 3 comments
Owner

@⁠krofty on GitHub · 2026-11-27 21:10 UTC · original

The RTX 3070 integration records roughly 300 rehash dispatches and 424 comparison dispatches per frame. The comparison jobs traverse about 13,656 64 KiB pieces. Most jobs are independent, but each span binds roots and launches a separate native dispatch, leaving small passes with limited occupancy.

Replace per-span maintenance launches with bounded GPU job batches. Preserve the existing per-piece hash algorithm, complete widened footprints, compare modes, output offsets and publication semantics. Job tables/descriptors/resources must remain immutable and pinned through the actual native completion fence. Query binding support and retain the legacy path on unsupported devices or unrepresentable plans.

Acceptance:

  • Explicit producer-to-checker ordering for UAV and COPY producers; an appended checker list alone is not a dependency.
  • Exact output parity for independent legacy jobs, and explicit handling/fallback for overlapping writable hash pieces and output ranges.
  • Bounded descriptor/job capacity, fail-closed layout validation, immutable upload sources, native-fence-qualified reuse and fallback before recording partial batches.
  • Software/native GPU regressions for skew, tails, multiple resources/modes, descriptor capacity, overlapping jobs, blocked-fence reuse and producers submitted with checkers.
  • Diagnostics build via build.sh; fixed-world matched off/on runs, actual dispatch/job counters, reference pictures and crash checks. No FPS claim from dispatch count alone.

Claim: Codex / krofty owns the GPU maintenance batch implementation on its own branch. Checked current issues/PRs; this does not modify other developers' CPU refresh batching (#318), write-watch work (#207), send-changed correction (#203), or Snaacky's raw-pixel/LDS work. Related VRAM-window placement is already submitted as draft #209; its runtime validation remains on the separately owned integration. PRs stay open and unmerged.

**@⁠krofty** on GitHub · 2026-11-27 21:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335) The RTX 3070 integration records roughly 300 rehash dispatches and 424 comparison dispatches per frame. The comparison jobs traverse about 13,656 64 KiB pieces. Most jobs are independent, but each span binds roots and launches a separate native dispatch, leaving small passes with limited occupancy. Replace per-span maintenance launches with bounded GPU job batches. Preserve the existing per-piece hash algorithm, complete widened footprints, compare modes, output offsets and publication semantics. Job tables/descriptors/resources must remain immutable and pinned through the actual native completion fence. Query binding support and retain the legacy path on unsupported devices or unrepresentable plans. Acceptance: - Explicit producer-to-checker ordering for UAV and COPY producers; an appended checker list alone is not a dependency. - Exact output parity for independent legacy jobs, and explicit handling/fallback for overlapping writable hash pieces and output ranges. - Bounded descriptor/job capacity, fail-closed layout validation, immutable upload sources, native-fence-qualified reuse and fallback before recording partial batches. - Software/native GPU regressions for skew, tails, multiple resources/modes, descriptor capacity, overlapping jobs, blocked-fence reuse and producers submitted with checkers. - Diagnostics build via build.sh; fixed-world matched off/on runs, actual dispatch/job counters, reference pictures and crash checks. No FPS claim from dispatch count alone. Claim: Codex / krofty owns the GPU maintenance batch implementation on its own branch. Checked current issues/PRs; this does not modify other developers' CPU refresh batching (#318), write-watch work (#207), send-changed correction (#203), or Snaacky's raw-pixel/LDS work. Related VRAM-window placement is already submitted as draft #209; its runtime validation remains on the separately owned integration. PRs stay open and unmerged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:12:08 +00:00
Author
Owner

@⁠krofty on GitHub · 2026-11-27 21:25 UTC · original

Implementation submitted as draft #358: #358

Eight planner/source regressions pass. The strengthened native fixture passes on WARP and RTX 3070 with the debug layer, covering complete hashes/flags, COPY and UAV producers with no intervening CPU wait, output holes, short/skewed footprints and pending-fence immutable-table protection. Both diagnostics and ordinary crate checks pass; independent review found no blocking lifetime/order issue.

Integrated into the owned working NVIDIA runtime. Diagnostics build298 and a fixed-world same-build off/on pair are in progress. Performance and sustained30FPS remain unverified; all legacy fallback, indirect safety checks and readback publication remain enabled. Source ownership remains Codex while runtime validation and any resulting fixes are pending. No PR is merged.

**@⁠krofty** on GitHub · 2026-11-27 21:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7228431720) Implementation submitted as draft #358: https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/358 Eight planner/source regressions pass. The strengthened native fixture passes on WARP and RTX 3070 with the debug layer, covering complete hashes/flags, COPY and UAV producers with no intervening CPU wait, output holes, short/skewed footprints and pending-fence immutable-table protection. Both diagnostics and ordinary crate checks pass; independent review found no blocking lifetime/order issue. Integrated into the owned working NVIDIA runtime. Diagnostics build298 and a fixed-world same-build off/on pair are in progress. Performance and sustained30FPS remain unverified; all legacy fallback, indirect safety checks and readback publication remain enabled. Source ownership remains Codex while runtime validation and any resulting fixes are pending. No PR is merged.
Author
Owner

@⁠krofty on GitHub · 2026-11-27 21:41 UTC · original

RELEASED implementation ownership. Draft #358 contains the isolated batching architecture and tested timestamp-ordering follow-up; no merge requested. The first fixed-world pair removed roughly90% of launches but did not improve FPS (median host intervals50.9ms off /51.2ms on), so batching remains disabled. Both runs closed normally and pictures retained expected geometry. No completed-frame distribution or30FPS claim is made. Further work moves to canonical section identity under the existing shared-storage objective rather than repeating small batching trials. This issue remains open for review; runtime validation does not establish its performance acceptance.

**@⁠krofty** on GitHub · 2026-11-27 21:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7228674443) RELEASED implementation ownership. Draft #358 contains the isolated batching architecture and tested timestamp-ordering follow-up; no merge requested. The first fixed-world pair removed roughly90% of launches but did not improve FPS (median host intervals50.9ms off /51.2ms on), so batching remains disabled. Both runs closed normally and pictures retained expected geometry. No completed-frame distribution or30FPS claim is made. Further work moves to canonical section identity under the existing shared-storage objective rather than repeating small batching trials. This issue remains open for review; runtime validation does not establish its performance acceptance.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 00:43 UTC · original

Thanks @⁠krofty, noted. Pull requests are on hold for the moment. I'll look at #358 when I get back to them.

**@⁠trustno1-coder** on GitHub · 2026-11-28 00:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/335#issuecomment-7231146008) Thanks @⁠krofty, noted. Pull requests are on hold for the moment. I'll look at #358 when I get back to them.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#335
No description provided.