mirror of
https://github.com/hanzoai/engine.git
synced 2026-11-20 23:45:50 +00:00
Refactor the gather_kv_cache test to a Scenario struct and add a head_size=128, x=8, block_size=32 multi-block prefill case (non-identity block_table, partial last block) in f32 so every flat index is exact. Proves the un-paging index math + K-cache x-split at production dimensions, not just the toy shape. Guard the empty-gather case from reading back a 0-element tensor (ROCm cannot launch a 0-element kernel); the shape assertion is the whole contract there.