cuda.bindings.nvml.vgpu_instance_get_vm_id#
- cuda.bindings.nvml.vgpu_instance_get_vm_id(unsigned int vgpu_instance) tuple#
Retrieve the VM ID associated with a vGPU instance.
The VM ID is returned as a string, not exceeding 80 characters in length (including the NUL terminator). See nvmlConstants::NVML_DEVICE_UUID_BUFFER_SIZE. The format of the VM ID varies by platform, and is indicated by the type identifier returned in
vm_idType. For Kepler ™️ or newer fully supported devices.- Parameters:
vgpu_instance (unsigned int) – Identifier of the target vGPU instance.
- Returns:
char: Pointer to caller-supplied buffer to hold VM ID.
int: Pointer to hold VM ID type.
- Return type:
A 2-tuple containing
See also
nvmlVgpuInstanceGetVmID