[Build] Fix CUDA arch build coverage gaps (#45277)

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Co-authored-by: Xin Li <xinli-sw@users.noreply.github.com>
Co-authored-by: ShawRong <ShawRong@users.noreply.github.com>
Co-authored-by: Change72 <Change72@users.noreply.github.com>
This commit is contained in:
Shengqi Chen
2026-06-13 22:09:20 -07:00
committed by GitHub
co-authored by Xin Li ShawRong Change72
parent 54bbf51668
commit 78e7293bb1
14 changed files with 240 additions and 132 deletions
+8
View File
@@ -773,6 +773,14 @@ def cutlass_scaled_mm_supports_fp4(cuda_device_capability: int) -> bool:
return torch.ops._C.cutlass_scaled_mm_supports_fp4(cuda_device_capability)
def mxfp4_experts_quant_supported(cuda_device_capability: int) -> bool:
try:
return torch.ops._C.mxfp4_experts_quant_supported(cuda_device_capability)
except AttributeError:
# Return False on builds where the CUDA helper is not available.
return False
def cutlass_scaled_fp4_mm(
a: torch.Tensor,
b: torch.Tensor,