pub fn prefill_attention_64(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
q: DevicePtr,
k: DevicePtr,
v: DevicePtr,
output: DevicePtr,
seq_len: u32,
batch: u32,
num_q_heads: u32,
num_kv_heads: u32,
head_dim: u32,
inv_sqrt_d: f32,
causal: bool,
sliding_window: u32,
stream: u64,
) -> Result<()>Expand description
Contiguous prefill Flash Attention — BF16, BR=64 (256 threads).
Larger tile size halves CTA count and causal KV iterations for long sequences. Grid: (num_q_heads, ceil(seq_len/64), batch) Block: (256, 1, 1)