mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-14 08:10:51 +08:00
Update model_management.py
This commit is contained in:
parent
1b7b7ad6f1
commit
894c727ce2
@ -275,19 +275,17 @@ try:
|
||||
|
||||
|
||||
if "[ZLUDA]" in torch_device_name:
|
||||
print(" ")
|
||||
print("***----------------------ZLUDA--------------------------***")
|
||||
print(" :: ZLUDA detected, disabling non-supported functions.")
|
||||
|
||||
if torch.backends.cudnn.enabled:
|
||||
torch.backends.cudnn.enabled = False
|
||||
print(" :: cuDNN , flash_sdp , mem_efficient_sdp disabled")
|
||||
|
||||
torch.backends.cudnn.enabled = False
|
||||
print(" :: (cuDNN, flash_sdp, mem_efficient_sdp disabled) ")
|
||||
torch.backends.cuda.enable_flash_sdp(False)
|
||||
torch.backends.cuda.enable_math_sdp(True)
|
||||
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
||||
print("***-----------------------------------------------------***")
|
||||
|
||||
print("Device:", torch_device_name)
|
||||
print(" :: Device:", torch_device_name)
|
||||
print(" ")
|
||||
except:
|
||||
print("Could not pick default device.")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user