[Perf] Tune the Triton packed GDN decode tile on SM90 (#63864)

Signed-off-by: Zhifeng Li <56554081+Rockyeast@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Thien Tran <gau.nernst@yahoo.com.sg>
This commit is contained in:
authored and GitHub committed 2026-10-27 07:17:34 +00:00
1 parent ace90aeb24
commit 94f56ce92c
1 file changed
+9
@@ -451,6 +451,15 @@ def fused_recurrent_gated_delta_rule_packed_decode(
BV = 4
elif initial_state.dtype == torch.float32:
BV = 8
elif (
K == V == 128
and initial_state.dtype == torch.float32
and current_platform.is_cuda()
and current_platform.is_device_capability(90, device_id=dev.index)
):
# Tuned on H200: with an FP32 state BV=4 is fastest at every measured shape.
# No BF16-state tile wins everywhere on SM90, so BF16 keeps 32.
BV = 4
num_stages = 3
num_warps = 1