vllm.models.minimax_m3.amd.ops.index_topk_decode.prefill_kernel
¶
Index top-k for MiniMax-M3 (FlyDSL, gfx950).
One 64-lane workgroup per (row, head) returns the 16 highest-scoring block ids in AITER's order, walking the row in windows of STRIPS x 64 blocks.
_below(mask, base)
¶
The set bits of mask below this lane, plus base (v_mbcnt).
Source code in vllm/models/minimax_m3/amd/ops/index_topk_decode/prefill_kernel.py
_comp(k, i)
¶
_key(bits)
¶
_popc(m)
¶
Set bits of a wave mask; two 32-bit counts keep the compare scalar.