refactor: abstract deepgemm support into platform (#37519)

Co-authored-by: sherryC41 <sherry.c.c41@gmail.com>
This commit is contained in:
SherryC41
2026-03-20 17:54:08 +00:00
committed by GitHub
co-authored by sherryC41
parent e1d85e5c24
commit 6ec5e9fd37
3 changed files with 13 additions and 4 deletions
+1 -4
View File
@@ -70,10 +70,7 @@ def is_deep_gemm_supported() -> bool:
"""Return `True` if DeepGEMM is supported on the current platform.
Currently, only Hopper and Blackwell GPUs are supported.
"""
is_supported_arch = current_platform.is_cuda() and (
current_platform.is_device_capability(90)
or current_platform.is_device_capability_family(100)
)
is_supported_arch = current_platform.support_deep_gemm()
return envs.VLLM_USE_DEEP_GEMM and has_deep_gemm() and is_supported_arch