-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat(vm): add all GPUs on the host to a VM #2355
Conversation
crates/gpu-utils/src/lib.rs
Outdated
for device in info { | ||
let device = device?; | ||
let device_class = process_property_result(device.device_class())?; | ||
if device_class == DisplayController { | ||
result.push(process_property_result(device.location())?); | ||
} | ||
} |
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.
Let's do it in the functional style.
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.
I wanted but then with all those ?
I decided to do it straightforward
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.
utACK
…cific API to a separate mod
Description
Add all the GPUs to the XML of a newly created VM
Proposed changes
By default, GPUs are disabled