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.
For all products. This value corresponds to the
nvmlPciInfo_t.busIdreturned bydevice_get_pci_info_v3(). Starting from NVML 5, this API causes NVML to initialize the target GPU NVML may initialize additional GPUs if:.The target GPU is an SLI slave.
- 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
Note
NVML 4.304 and older version of nvmlDeviceGetHandleByPciBusId”_v1” returns NVML_ERROR_NOT_FOUND instead of NVML_ERROR_NO_PERMISSION.
See also
nvmlDeviceGetHandleByPciBusId_v2