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_SUCCESSif the bustypeis successfully retrieved.NVML_ERROR_UNINITIALIZEDif the library has not been successfully initialized.NVML_ERROR_INVALID_ARGUMENTifdeviceis invalid ortypeis NULL.NVML_ERROR_UNKNOWNon 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