cuda.bindings._v2.driver.device_get_by_pci_bus_id#

cuda.bindings._v2.driver.device_get_by_pci_bus_id(pci_bus_id) → int#

Returns a handle to a compute device.

Returns in *device a device handle given a PCI bus ID string. where domain, bus, device, and function are all hexadecimal values.

Parameters:

pci_bus_id (bytes) – String in one of the following forms:.

Returns:

Returned device handle.

Return type:

int

See also

cuDeviceGetByPCIBusId