heimdallr.utilities.nvidia.bindings.nvmlDeviceSetNvLinkUtilizationControl

heimdallr.utilities.nvidia.bindings.nvmlDeviceSetNvLinkUtilizationControl(device, link, counter, control, reset)[source]

Set the NVLINK utilization counter control.

Set the NVLINK utilization counter control information for the specified counter, 0 or 1. Please refer to nvmlNvLinkUtilizationControl_t for the structure definition. Performs a reset of the counters if the reset parameter is non-zero. Note: nvmlNvLinkUtilizationControl_t is an integer.

Parameters
  • device – The identifier of the target device

  • link – Specifies the NvLink link to be queried (uint)

  • counter – Specifies the counter that should be set (0 or 1)

  • reset – Resets the counters on set if non-zero (uint)

  • control – The nvmlNvLinkUtilizationControl_t control setting Note: 0 == cycles, 1 == packets, 2 == bytes