[Bugfix] Fix broken CPU compressed-tensors test (#11338)

Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
Isotr0py 2024-12-20 01:37:31 +08:00 committed by GitHub
parent cdf22afdda
commit 276738ce0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,7 @@ TORCH_DEVICE_IDENTITY = torch.ones(1, dtype=torch.float32)
def sparse_cutlass_supported() -> bool:
# sparse cutlass is not supported on Rocm
if current_platform.is_rocm():
if not current_platform.is_cuda():
return False
capability_tuple = current_platform.get_device_capability()
@ -22,8 +21,7 @@ def sparse_cutlass_supported() -> bool:
def cutlass_fp8_supported() -> bool:
# cutlass is not supported on Rocm
if current_platform.is_rocm():
if not current_platform.is_cuda():
return False
capability_tuple = current_platform.get_device_capability()