Files
6gbvram---16gb-ram/crates
Sinan Mutlu 78e99b92c4 GPU: a parallel compare's first cut saturates at its span's start
The per-thread cut was `at - (start + at) % PIECE`. When the span does not
begin on a piece boundary the subtraction runs below the span's start and
wraps in a release build; the first thread then scanned nothing (or a huge
range), so differences in the first piece were never found and those bytes
were never copied back into title memory.

`scan_boundary` subtracts the offset into the piece from the span and
saturates at `from`; the test walks unaligned starts and asserts the cuts
stay ordered and on piece boundaries.

From kelvaroq native/patches/0009-shadow-compare.patch (GPL-3.0-or-later);
the same fix as fxceless/victory-fork 81d54b0 (fork pull request #1407).

(cherry picked from commit 30279c13dd81686d8a8cce7d329c10098fe043bd)
2026-11-27 17:29:36 -08:00
..