cuda.bindings.nvml.device_get_bus_type#

cuda.bindings.nvml.device_get_bus_type(intptr_t device) → unsigned int#

Get the type of the GPU Bus (PCIe, PCI, …).

return.

  • NVML_SUCCESS if the bus type is successfully retrieved.

  • NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized.

  • NVML_ERROR_INVALID_ARGUMENT if device is invalid or type is NULL.

  • NVML_ERROR_UNKNOWN on any unexpected error.

Parameters:

device (intptr_t) – The identifier of the target device.

Returns:

The PCI Bus type.

Return type:

unsigned int

See also

nvmlDeviceGetBusType