proper zluda detection

This commit is contained in:
Seunghoon Lee
2025-03-20 23:03:23 +09:00
parent d5cfd61e50
commit 0c890b50e0
+2 -1
View File
@@ -52,7 +52,8 @@ def has_zluda() -> bool:
return False
try:
dev = torch.device("cuda")
return torch.cuda.get_device_name(dev).endswith("[ZLUDA]")
cc = torch.cuda.get_device_capability(dev)
return cc == (8, 8)
except Exception:
return False