Skip to content

Commit 14465fb

Browse files
committed
Fix test
1 parent 70fc7ca commit 14465fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_core/cuda/core/system/_clock.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +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-
getattr(nvml.ClocksEventReasons, "EVENT_REASON_BOARD_LIMIT", None): ClocksEventReasons.BOARD_LIMIT,
24-
getattr(nvml.ClocksEventReasons, "EVENT_REASON_RELIABILITY", None): ClocksEventReasons.RELIABILITY,
23+
getattr(nvml.ClocksEventReasons, "EVENT_REASON_BOARD_LIMIT", -1): ClocksEventReasons.BOARD_LIMIT,
24+
getattr(nvml.ClocksEventReasons, "EVENT_REASON_RELIABILITY", -2): ClocksEventReasons.RELIABILITY,
2525
}
2626

2727

0 commit comments

Comments
 (0)