mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-10 03:25:22 +00:00
Fix amd_min_version crash when cpu device.
This commit is contained in:
@@ -294,6 +294,9 @@ def amd_min_version(device=None, min_rdna_version=0):
|
|||||||
if not is_amd():
|
if not is_amd():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if is_device_cpu(device):
|
||||||
|
return False
|
||||||
|
|
||||||
arch = torch.cuda.get_device_properties(device).gcnArchName
|
arch = torch.cuda.get_device_properties(device).gcnArchName
|
||||||
if arch.startswith('gfx') and len(arch) == 7:
|
if arch.startswith('gfx') and len(arch) == 7:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user