cuda.bindings.nvml.device_get_pcie_throughput#

cuda.bindings.nvml.device_get_pcie_throughput(
intptr_t device,
int counter,
) unsigned int#

Retrieve PCIe utilization information. This function is querying a byte counter over a 20ms interval and thus is the PCIe throughput over that interval.

For Maxwell ™️ or newer fully supported devices. This method is not supported in virtual machines running virtual GPU (vGPU).

Parameters:
  • device (intptr_t) – The identifier of the target device.

  • counter (PcieUtilCounter) – The specific counter that should be queried nvmlPcieUtilCounter_t.

Returns:

Reference in which to return throughput in KB/s.

Return type:

unsigned int

See also

nvmlDeviceGetPcieThroughput