mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-21 23:17:02 +08:00
Fix for AMD Devices on Windows.
tested and confirmed working.
This commit is contained in:
parent
85ed1fb7b8
commit
09f30407ff
@ -630,6 +630,8 @@ def supports_dtype(device, dtype): #TODO
|
||||
def device_supports_non_blocking(device):
|
||||
if is_device_mps(device):
|
||||
return False #pytorch bug? mps doesn't support non blocking
|
||||
if directml_enabled:
|
||||
return False #fix for AMD devices on Windows.
|
||||
return True
|
||||
|
||||
def device_should_use_non_blocking(device):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user