[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:
co-authored by
Xin Li
ShawRong
Change72
parent
54bbf51668
commit
78e7293bb1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user