cuda.bindings.nvml.device_get_handle_by_pci_bus_id_v2#

cuda.bindings.nvml.device_get_handle_by_pci_bus_id_v2(pci_bus_id) intptr_t#

Acquire the handle for a particular device, based on its PCI bus id.

Parameters:

pci_bus_id (str) – The PCI bus id of the target GPU Accept the following formats (all numbers in hexadecimal): domain:bus:device.function in format x:x:x.x domain:bus:device in format x:x:x bus:device.function in format x:x.x.

Returns:

Reference in which to return the device handle.

Return type:

intptr_t

See also

nvmlDeviceGetHandleByPciBusId_v2