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.

Add warning about forcing single GPU mode on Windows (#16055)

comfyanonymous345c9190497c
diff --git a/main.py b/main.py
index bf0ea7343..20db14a36 100644
--- a/main.py
+++ b/main.py
@@ -50,6 +50,7 @@ if __name__ == "__main__":
and os.environ.get("CUDA_VISIBLE_DEVICES") is None
):
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
+ logging.warning("On windows we are currently forcing single GPU mode in ComfyUI due to a Nvidia related issue, if you want to disable this use: --cuda-device all")
faulthandler.enable(file=sys.stderr, all_threads=args.debug_hang)
if __name__ == "__main__" and args.debug_hang: