From 70de56f0e192a085b99788d13bfaff8919013650 Mon Sep 17 00:00:00 2001 From: Meenakshi Venkataraman Date: Sat, 18 Apr 2026 01:07:48 +0000 Subject: [PATCH] fix: extend b12x FP4 GEMM support to SM121 (GB10/DGX Spark) SM121 (GB10, used in DGX Spark and RTX Pro 6000) supports the same b12x CuTe DSL warp-level MMA FP4 GEMM kernels as SM120, but was excluded from _b12x_gemm_fp4_requirement's supported_compute_capability list. On SM121, calling mm_fp4(..., backend="b12x") raised: BackendSupportedError: mm_fp4 does not support backend 'b12x' with capability 121 Add 121 to the supported compute capability list so that mm_fp4(..., backend="b12x") works correctly on SM121. Signed-off-by: Meenakshi Venkataraman --- flashinfer/gemm/gemm_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashinfer/gemm/gemm_base.py b/flashinfer/gemm/gemm_base.py index e5b9b713c02..decc213e6f7 100755 --- a/flashinfer/gemm/gemm_base.py +++ b/flashinfer/gemm/gemm_base.py @@ -4538,7 +4538,7 @@ def _cute_dsl_gemm_fp4_requirement( return True -@supported_compute_capability([120]) +@supported_compute_capability([120, 121]) def _b12x_gemm_fp4_requirement( a: torch.Tensor, # unused b: torch.Tensor, # unused