aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-12-02 09:46:19 +0300
committerGitHub <noreply@github.com>2023-12-02 09:46:19 +0300
commit88736b5557a64f47dec36057acc0f97f9b89f2dc (patch)
tree1bc67b9177119e760c1d5dfdb2ee8d53b0c37546 /modules/devices.py
parent9eadc4f146daf9a43290e0f469c22dd5549572a3 (diff)
parent3cd6e1d0a0877e6f1ac931c8253e6eee09da3805 (diff)
Merge pull request #14131 from read-0nly/patch-1
Update devices.py - Make 'use-cpu all' actually apply to 'all'
Diffstat (limited to 'modules/devices.py')
-rw-r--r--modules/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices.py b/modules/devices.py
index 1d4eb563..f97f9cfb 100644
--- a/modules/devices.py
+++ b/modules/devices.py
@@ -38,7 +38,7 @@ def get_optimal_device():
def get_device_for(task):
- if task in shared.cmd_opts.use_cpu:
+ if task in shared.cmd_opts.use_cpu or "all" in shared.cmd_opts.use_cpu:
return cpu
return get_optimal_device()