Skip to content

Commit ac178b7

Browse files
committed
Fix clock event coverage with older bindings
1 parent f5fafa3 commit ac178b7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

cuda_core/tests/test_enum_coverage.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@
128128

129129
_MODULES.append(system_typing)
130130

131+
_CLOCKS_EVENT_REASONS_STR_UNMAPPED = {
132+
core_member
133+
for binding_member, core_member in (
134+
("EVENT_REASON_BOARD_LIMIT", "BOARD_LIMIT"),
135+
("EVENT_REASON_RELIABILITY", "RELIABILITY"),
136+
)
137+
if binding_member not in nvml.ClocksEventReasons.__members__
138+
}
139+
131140
_CASES.extend(
132141
[
133142
(
@@ -160,7 +169,7 @@
160169
system_typing.ClocksEventReasons,
161170
_device._CLOCKS_EVENT_REASONS_MAPPING,
162171
set(),
163-
set(),
172+
_CLOCKS_EVENT_REASONS_STR_UNMAPPED,
164173
),
165174
(
166175
nvml.EventType,

0 commit comments

Comments
 (0)