When to use SIMD group ops
- Parallel reductions within a threadgroup (sum, min, max)
- Prefix scan algorithms
- Exchanging values between lanes without shared memory
@enigma.kernel bodies.
Reductions
Each reduction takes one value per lane and returns the same result to all 32 lanes.Example: sum reduction
Prefix scans
Prefix scans return partial results: lanei gets the reduction of lanes [0, i) (exclusive) or [0, i] (inclusive).
