Skip to content

Provide idiomatic abstraction for vGPU type information #68

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

christoph-heiss
Copy link
Contributor

Pretty straight forward overall. Introduces a new VgpuType struct, which wraps over a nvmlVgpuTypeId_t and a proper idiomatic way to access these informations.

I'v also added a Nvml::lib() method, for accessing the underlying (raw) library from the abstraction. This would be useful for e.g. calling functions which are not yet abstracted in nvml-wrapper, without having to completely use nvml-wrapper-sys and NIH, basically. Hopefully that is acceptable.

@christoph-heiss
Copy link
Contributor Author

Ping. Is this of any interest for this library?

@thinkingfish
Copy link
Contributor

thinkingfish commented Apr 11, 2025

@christoph-heiss Thanks for the ping. A bit of background is that we (IOP Systems) became the primary maintainer of this repo earlier this year, after the original owner took a job that made it tricky for them to contribute to OSS. This PR was submitted before we came on board, and fell through the crack a bit during this transition. We will take a look and hopefully get it merged soon.

Copy link
Contributor

@swlynch99 swlynch99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got two nits here but otherwise this looks good to me. I'm still getting up to speed on the codebase here so I'm going to get @brayniac to give a second opinion here.

@christoph-heiss
Copy link
Contributor Author

Thanks for the review! I've fixed both nits.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
@swlynch99 swlynch99 merged commit 2391225 into rust-nvml:main Jun 10, 2025
7 checks passed
@swlynch99
Copy link
Contributor

I'm gonna go ahead and merge this as it's been a few months and the code LGTM. Thanks for the PR!

@christoph-heiss christoph-heiss deleted the vgpu-types branch June 10, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants