Part of the Qwen3.8-27B swap (sc #641 / #642). Follow-up to #542 (GDN decode, PR #548) and #543 (GDN prefill, PR #549). Both kernels are chip-proven for correctness; this issue tracks their speed against the hardware ceiling.
Decode (one token): the measured GDN decode step moves the layer's state at about 18% of the 273 GB/s memory bandwidth (receipt in the #548 evidence). The state is 48 heads x 128 x 128 f32 per layer; the step reads and writes it once. Target: as close to the bandwidth ceiling as possible.
- keep the state in bf16 or f16 with f32 accumulation (halves the bytes; needs a drift study against the f32 reference over 128k steps)
- more bytes in flight per thread (wider loads, deeper prefetch), fewer passes
Prefill (the scan): the delta-rule recurrence runs on CUDA cores, token by token. Move it to the chunked form (WY / UT transform) so the work inside a chunk becomes matrix products on the tensor cores, with only the chunk boundaries sequential.
Report speed against the hardware ceiling (bandwidth for decode, tensor-core peak for the chunked scan), not only against the current numbers.