cuda.bindings.nvml.device_register_events#

cuda.bindings.nvml.device_register_events(
intptr_t device,
unsigned long long event_types,
intptr_t set,
)#

Starts recording of events on a specified devices and add the events to specified nvmlEventSet_t.

For Fermi ™️ or newer fully supported devices. ECC events are available only on ECC-enabled devices (see nvmlDeviceGetTotalEccErrors) Power capping events are available only on Power Management enabled devices (see nvmlDeviceGetPowerManagementMode). For Linux only. This call starts recording of events on specific device. All events that occurred before this call are not recorded. Checking if some event occurred can be done with nvmlEventSetWait_v2. If function reports NVML_ERROR_UNKNOWN, event set is in undefined state and should be freed. If function reports NVML_ERROR_NOT_SUPPORTED, event set can still be used. None of the requested event_types are registered in that case.

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

  • event_types (unsigned long long) – Bitmask of Event Types to record.

  • set (intptr_t) – Set to which add new event types.

See also

nvmlDeviceRegisterEvents