Skip to content

vgpu: expose underlying uint32 via VgpuTypeId.GetID()#178

Open
xpahos wants to merge 1 commit into
NVIDIA:mainfrom
xpahos:vgpud-profile-id
Open

vgpu: expose underlying uint32 via VgpuTypeId.GetID()#178
xpahos wants to merge 1 commit into
NVIDIA:mainfrom
xpahos:vgpud-profile-id

Conversation

@xpahos
Copy link
Copy Markdown

@xpahos xpahos commented May 5, 2026

While iterating supported/creatable vGPU types there is no way to map back to the legacy mediated-device profile names (e.g. "nvidia-577") exposed under /sys/.../nvidia/creatable_vgpu_types — those entries are keyed by the raw nvmlVgpuTypeId uint32, and GetName() returns the device-specific name instead.
Add GetID() uint32 on nvmlVgpuTypeId so callers can read the underlying handle.

@xpahos xpahos force-pushed the vgpud-profile-id branch from f19b0c5 to 164e7c2 Compare May 5, 2026 20:04
Comment thread pkg/nvml/zz_generated.api.go
Comment thread pkg/nvml/vgpu.go
While iterating supported/creatable vGPU types there is no way to map
back to the legacy mediated-device profile names (e.g. "nvidia-577")
exposed under /sys/.../nvidia/creatable_vgpu_types — those entries are
keyed by the raw nvmlVgpuTypeId uint32, and GetName() returns the
device-specific name instead.
Add GetID() uint32 on nvmlVgpuTypeId so callers can read the underlying
handle.

Signed-off-by: Alexander Gryanko <xpahos@gmail.com>
@xpahos xpahos force-pushed the vgpud-profile-id branch from 4edfbed to 3d22175 Compare May 7, 2026 09:22
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.

2 participants