-
Notifications
You must be signed in to change notification settings - Fork 210
Gpu: Allow/denylist support to ignore devices (e.g. integrated) #2101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Depends on the removal PR to be merged first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, but I have few suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but I think the added 2 member bools are redundant, unless you intend to use them later also some other function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one suggestion
Fixes #1815 too? |
Sort of. #1815 is about how to control scheduling of workloads to different GPUs, e.g. lighter workload to integrated GPU, larger workload to a dedicated one. That could be achieved with different resource names per GPU type. This PR can help, if there's no need for the integrated GPU and it's just causing confusion with workloads being scheduled for it. |
By defining allowed/denied PCI IDs, it's possible to only select some GPUs per host. For example, on a desktop with integrated and discrete graphics, GPU plugin can only register the discrete one. Signed-off-by: Tuomas Katila <[email protected]>
Fixes #2087