Files
metal2vulkan/crates
Anees Iqbal c39fca99c0 Runtime tests: OpenCL-mode barrier variants across waves and by each fence flag
Every test of a barrier now also runs at a threadgroup larger than one
wave and with each fence flag alone and both:
- lsum in 64 threadgroups of 256 threads (each group's sum reads
  __local words other waves wrote), against the CPU's sums
  (65536 g + 32640, exact in f32); the ported lsum stays as it stood.
- the tiled multiply behind barrier(CLK_LOCAL_MEM_FENCE |
  CLK_GLOBAL_MEM_FENCE), and with its tiles in the threadgroup's own
  part of a __global scratch buffer (buffer index 5) behind
  barrier(CLK_GLOBAL_MEM_FENCE) alone, so the data crossing waves goes
  through device memory; both compared exactly with the CPU's product.

Verification follows (lavapipe and RADV and NVIDIA cards).
2026-11-27 03:30:57 -08:00
..