Skip to content

gpu/shadow: O(dirty) CopiedPages bitmask, lock-free mirrors & AVX2 merge/diff (2/4 of #51, stable-amd) - #184

Open
Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-copied-pages-avx2
Open

Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-copied-pages-avx2

Conversation

@Vladimir-Human

Copy link
Copy Markdown

Clean port of #57 (part 2/4 of #51) onto origin/stable-amd (75022ba, Cargo.lock untouched).

Supersedes #57.

Verification (clean port on 75022ba)

  • cargo check --workspace --tests --locked — passed
  • cargo check -p victory-gpu --tests --locked --features diagnostics — passed
  • cargo test --locked -p victory-gpu --lib shadow — 42 passed, 0 failed, 2 ignored

@HandshakeHackin

Copy link
Copy Markdown
Contributor

I carried the untouched-tail check requested in #57 onto this head. The retained copy, the title buffer and the GPU input each get a different byte pattern in the prefix, clean page and unused suffix. Dirty pages 62, 64 and 65 cross the bitmap’s 64-page boundary. The test compares both complete destination buffers with the scalar reference at seven tail lengths (1, 31, 32, 33, 63, 64 and 65 bytes).

On a Windows runner with AVX2 required, all five active tests in the module passed. In a separate negative control I widened the last merge by one byte. The new test failed at byte 196,609, exactly the first untouched byte for the one-byte tail. Test-only commit · Windows run and negative control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants