cuda.bindings._v2.driver.device_get_pci_bus_id#

cuda.bindings._v2.driver.device_get_pci_bus_id(int len, int dev) → bytes#

Returns a PCI Bus Id string for the device.

Returns an ASCII string identifying the device dev in the NULL-terminated string pointed to by pci_bus_id. length specifies the maximum length of the string that may be returned. where domain, bus, device, and function are all hexadecimal values. pci_bus_id should be large enough to store 13 characters including the NULL-terminator.

Parameters:
  • len (int) – Maximum length of string to store in name.

  • dev (int) – Device to get identifier string for.

Returns:

Returned identifier string for the device in the following

format.

Return type:

bytes

See also

cuDeviceGetPCIBusId