From 902ccbd203018691608dc4828a5fba45ee62d774 Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Sat, 29 Oct 2022 00:36:26 -0400 Subject: [PATCH] Don't try to start cuda:0 if auto used cpu mode. --- ui/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/server.py b/ui/server.py index a38a55c8..10c2a71c 100644 --- a/ui/server.py +++ b/ui/server.py @@ -407,7 +407,7 @@ display_warning = False if task_manager.is_alive() <= 0: # Either no defauls or no devices after loading config. # Select best GPU device using free memory, if more than one device. if task_manager.start_render_thread('auto'): # Detect best device for renders - if task_manager.is_alive(0) <= 0: # is not cuda:0 + if task_manager.is_alive(0) <= 0 and task_manager.is_alive('cpu') <= 0: # is not cuda:0 and auto didnt use CPU. if task_manager.start_render_thread('cuda'): # An other cuda device is better and cuda:0 is missing, start it... display_warning = True # And warn user to update settings... else: