From 299d189276f06e97db2588e8a7ef6c568edd588a Mon Sep 17 00:00:00 2001 From: chrismuzyn Date: Mon, 12 May 2025 19:14:26 -0400 Subject: [PATCH] When using the openvino backend, do not look for an nvidia gpu. --- modules/devices.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/devices.py b/modules/devices.py index 0863985e6..8bf2def3f 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -183,6 +183,8 @@ def get_cuda_device_string(): def get_optimal_device_name(): + if backend == 'openvino': + return "cpu" if cuda_ok or backend == 'directml': return get_cuda_device_string() if has_mps() and backend != 'openvino':