From 5849ff5337b5e865518c72f5bd45ce79d21a2604 Mon Sep 17 00:00:00 2001 From: Chunan Zeng Date: Thu, 22 Oct 2026 16:42:00 -0700 Subject: [PATCH] [Fix] [NVIDIA] jit: Build sm_100f on CC 10.7 until the bundled CUTLASS supports SM107 (#45911) Co-authored-by: Claude Opus 5.5 --- python/sglang/kernels/jit/utils/arch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/sglang/kernels/jit/utils/arch.py b/python/sglang/kernels/jit/utils/arch.py index 53de6d0d32..54e364507c 100644 --- a/python/sglang/kernels/jit/utils/arch.py +++ b/python/sglang/kernels/jit/utils/arch.py @@ -119,6 +119,11 @@ def _init_jit_cuda_arch_once(): suffix = _sail_arch_suffix(major, minor) else: suffix = _cuda_arch_suffix(major, minor) + if (major, minor) == (10, 7): + from flashinfer.compilation_context import cutlass_supports_sm107 + + if not cutlass_supports_sm107(): + major, minor, suffix = 10, 0, "f" _CUDA_ARCH = ArchInfo(major, minor, suffix)