[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
@@ -997,7 +997,12 @@ class CutlassExpertsMxfp4(mk.FusedMoEExpertsModular):
@staticmethod
def _supports_current_device() -> bool:
p = current_platform
return p.is_cuda() and p.is_device_capability_family(100)
capability = p.get_device_capability()
return (
p.is_cuda()
and capability is not None
and ops.mxfp4_experts_quant_supported(capability.to_int())
)
@staticmethod
def _supports_no_act_and_mul() -> bool: