When using the openvino backend, do not look for an nvidia gpu.#3932
Merged
Disty0 merged 2 commits intovladmandic:masterfrom May 13, 2025
Merged
When using the openvino backend, do not look for an nvidia gpu.#3932Disty0 merged 2 commits intovladmandic:masterfrom
Disty0 merged 2 commits intovladmandic:masterfrom
Conversation
Owner
|
@chrismuzyn thnx - just for future reference - any pr should always target dev branch, never master directly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This fixes the situation where the openvino backend is asked for using the --use-openvino flag, but an nvidia gpu is still detected and used. Issue reference: #3920
Notes
This fix does not break Intel ARC A series gpus using the Opvenvino backend. This is in spite of the
devicevariable being set tocpu.Environment and Testing
I have tested this on two Fedora 41 systems running Stable Diffusion 3.5 Medium due to memory constraints on the latter system.
XEON 8468 + Nvidia RTX 4000 Ada: The Openvino backend properly uses cpu only, whereas before it tried to swap to the Nvidia backend and use the Nvidia gpu.
Ryzen 5600X + Intel Arc A380: The Openvino backend picked up the fact that the A380 was available as an Openvino device (note the device variable quirk above). Log messages show: