Disable dynamic vram on wsl. (#12706)

This commit is contained in:
comfyanonymous
2026-02-28 19:23:28 -08:00
committed by GitHub
parent 17106cb124
commit 1080bd442a
2 changed files with 9 additions and 1 deletions

View File

@@ -180,6 +180,14 @@ def is_ixuca():
return True
return False
def is_wsl():
version = platform.uname().release
if version.endswith("-Microsoft"):
return True
elif version.endswith("microsoft-standard-WSL2"):
return True
return False
def get_torch_device():
global directml_enabled
global cpu_state