Files
metal2vulkan/crates
Anees Iqbal f4ae2c826f Tests: a stage-in kernel's partial threadgroup of 25 in 1,024 (red)
rt's every_device_runs_a_stage_in_kernels_partial_threadgroup dispatches a grid of 25 threads in
threadgroups of 1,024 of engine/kernel_stage_in's stage_in_fetch, which does not observe its
partition, and engine/kernel_stage_in_groups' stage_in_neighbour, which holds a threadgroup
barrier, each under its stage-input descriptor, with the stage-in region at origin 7 and 1,024
elements long over a source buffer that ends at the last thread's element. It checks all 25
threads' words against Metal's, every word past the grid unwritten, and that the walked kernel
counts one ragged grid on its partial-threadgroups variant.

The translator's a_stage_in_kernels_partial_threadgroup_fetches_inside_its_buffer runs both
kernels' partial-threadgroups variants on the CPU interpreter over the same layout, with the
source and output buffers exactly as long as the threads reach and the zero range unmapped, so a
fetch past the buffer or a store past the output traps.

Both fail today: the translator refuses a kernel's partial-threadgroups variant where it reads a
stage-input region (plan_partial_groups), and rt refuses the dispatch as
Gap::PartialThreadgroups at the translator's site.
2026-11-23 04:47:56 -08:00
..