mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
proper zluda detection
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user