Merge pull request #3932 from chrismuzyn/master

When using the openvino backend, do not look for an nvidia gpu.
This commit is contained in:
Disty0
2025-05-13 03:29:38 +03:00
committed by GitHub
+2
View File
@@ -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':