Skip to content

Commit 9dfac0b

Browse files
committed
Add new ClocksEventReasons to cuda.core
1 parent 29141f9 commit 9dfac0b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cuda_core/cuda/core/system/_clock.pxi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ _CLOCKS_EVENT_REASONS_MAPPING = {
2020
nvml.ClocksEventReasons.THROTTLE_REASON_HW_THERMAL_SLOWDOWN: ClocksEventReasons.HW_THERMAL_SLOWDOWN,
2121
nvml.ClocksEventReasons.THROTTLE_REASON_HW_POWER_BRAKE_SLOWDOWN: ClocksEventReasons.HW_POWER_BRAKE_SLOWDOWN,
2222
nvml.ClocksEventReasons.EVENT_REASON_DISPLAY_CLOCK_SETTING: ClocksEventReasons.DISPLAY_CLOCK_SETTING,
23+
nvml.ClocksEventReasons.EVENT_REASON_BOARD_LIMIT: ClocksEventReasons.BOARD_LIMIT,
24+
nvml.ClocksEventReasons.EVENT_REASON_RELIABILITY: ClocksEventReasons.RELIABILITY,
2325
}
2426

2527

cuda_core/cuda/core/system/typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class ClocksEventReasons(StrEnum):
9696
HW_THERMAL_SLOWDOWN = "hw_thermal_slowdown"
9797
HW_POWER_BRAKE_SLOWDOWN = "hw_power_brake_slowdown"
9898
DISPLAY_CLOCK_SETTING = "display_clock_setting"
99+
BOARD_LIMIT = "board_limit"
100+
RELIABILITY = "reliability"
99101

100102

101103
class ClockType(StrEnum):

0 commit comments

Comments
 (0)