GPU: keep descriptor fallback scans outside marked ranges #178

Open
github-bot wants to merge 1 commit from github-bot/gh-178 into main AGit
Owner

@⁠stritphatographir on GitHub · 2026-11-26 10:30 UTC · original
stritphatographir:contrib/descriptor-fallback-ranges → main · +54 −4 · 1 files · 1 commits · open

Marked descriptor runs and sampled write-watch pages feed the same parallel heap sync. If a fallback page covers an already marked slot, two workers can update the same copied-record state. The worker code assumes each range has one owner.

Subtract the sorted marked runs from each sampled page before assigning work. Marked slots keep their existing path. Unmarked gaps still go through the fallback and keep its missed-mark reporting.

Validation

  • The new synthetic test failed with the original full-page enqueue. It passed after the change and covers partially covered pages and a fully covered range.
  • All 9 descriptor tests passed in both the default and diagnostics builds.
  • GPU Clippy passed for all targets and features with warnings treated as errors.
  • The repository and staged asset-policy checks passed. This PR changes one Rust source file.

Codex assisted with the upstream port and verification.

**@⁠stritphatographir** on GitHub · 2026-11-26 10:30 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/178) `stritphatographir:contrib/descriptor-fallback-ranges` → `main` · +54 −4 · 1 files · 1 commits · open Marked descriptor runs and sampled write-watch pages feed the same parallel heap sync. If a fallback page covers an already marked slot, two workers can update the same copied-record state. The worker code assumes each range has one owner. Subtract the sorted marked runs from each sampled page before assigning work. Marked slots keep their existing path. Unmarked gaps still go through the fallback and keep its missed-mark reporting. ## Validation - The new synthetic test failed with the original full-page enqueue. It passed after the change and covers partially covered pages and a fully covered range. - All 9 descriptor tests passed in both the default and diagnostics builds. - GPU Clippy passed for all targets and features with warnings treated as errors. - The repository and staged asset-policy checks passed. This PR changes one Rust source file. Codex assisted with the upstream port and verification.
Assign each descriptor range to a single worker before comparing and mirroring heap records. Add a regression test for partial and complete overlap.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:21:49 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/178/head:github-bot/gh-178'
git switch 'github-bot/gh-178'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-178'
git switch 'github-bot/gh-178'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-178'
git switch 'github-bot/gh-178'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-178'
git switch 'main'
git merge --squash 'github-bot/gh-178'
git switch 'main'
git merge --ff-only 'github-bot/gh-178'
git switch 'main'
git merge 'github-bot/gh-178'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.