Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix amd_min_version crash when cpu device. (#9754)

comfyanonymousfb763d43332a
diff --git a/comfy/model_management.py b/comfy/model_management.py
index cb6580f73..bbfc3c7a1 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -294,6 +294,9 @@ def amd_min_version(device=None, min_rdna_version=0):
if not is_amd():
return False
+ if is_device_cpu(device):
+ return False
+
arch = torch.cuda.get_device_properties(device).gcnArchName
if arch.startswith('gfx') and len(arch) == 7:
try: