The structured buffer-view test can fail on a valid element boundary #174

Open
opened 2026-11-28 17:40:06 +00:00 by HandshakeHackin · 1 comment
HandshakeHackin commented 2026-11-28 17:40:06 +00:00 (Migrated from github.com)
Contributor

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-28T17:40:06Z.


On unmodified v26.11.6, the Windows GPU suite failed at descriptor/host.rs:5901 in both a default-concurrency run and a single-threaded run. The assertion expected a dedicated 2,048-byte buffer and got the normal 4 MiB backing window.

The fixture starts on a 4 KiB page and adds eight bytes. When that page begins 4,096 bytes into the backing window, the view starts at 4,104 bytes, exactly nine 456-byte elements. Reusing the ordinary window is then correct. Eighteen of the 1,024 page positions in a 4 MiB window have this alignment.

I forced that page placement in Windows CI. The release test failed with 4194304 != 2048. Moving only the structured fixture to four bytes into its page makes it misaligned to both 16 and 456 at every page position. The corrected test passed in 12 fresh processes at the original failing placement.

One-line test fix · Deterministic before/after Windows run

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6669084912 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/174). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-28T17:40:06Z. --- On unmodified v26.11.6, the Windows GPU suite failed at `descriptor/host.rs:5901` in both a [default-concurrency run](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46168938482/job/141052701747) and a [single-threaded run](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46170479370/job/141057524027). The assertion expected a dedicated 2,048-byte buffer and got the normal 4 MiB backing window. The fixture starts on a 4 KiB page and adds eight bytes. When that page begins 4,096 bytes into the backing window, the view starts at 4,104 bytes, exactly nine 456-byte elements. Reusing the ordinary window is then correct. Eighteen of the 1,024 page positions in a 4 MiB window have this alignment. I forced that page placement in Windows CI. The release test failed with `4194304 != 2048`. Moving only the structured fixture to four bytes into its page makes it misaligned to both 16 and 456 at every page position. The corrected test passed in 12 fresh processes at the original failing placement. [One-line test fix](https://github.com/HandshakeHackin/klbf-lab/commit/8f21fa22c88e3b889b191f7acf7dbcf011b39412) · [Deterministic before/after Windows run](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46171240544/job/141059914100)
PastiiJay commented 2026-11-29 00:40:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T00:40:32Z.


thanks, good catch on the element boundary. taking it into the next build with credit, I'll ping here when it's out

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7248274976 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/174#issuecomment-7248274976). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-29T00:40:32Z. --- thanks, good catch on the element boundary. taking it into the next build with credit, I'll ping here when it's out
Sign in to join this conversation.
No labels
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.

Reference
PastiiJay/klbf-lab#174
No description provided.