Skip to content

Commit 0b233a4

Browse files
committed
Address agent feedback NVIDIA#4: Update unsupported_before calls to use None instead of specific DeviceArch values.
- Medium/low: [test_device.py:162](/wrk/forked/pr2788/cuda_bindings/tests/nvml/test_device.py:162) changed unsupported_before(device, None) to KEPLER. Mike’s pre-merge release branch and cont7 both use None; the adjacent getter does too. The current version propagates NotSupportedError on modern devices where the setter is unavailable.
1 parent 51ad4ac commit 0b233a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cuda_bindings/tests/nvml/test_device.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_set_power_management_limit(all_devices, subtests):
159159
for device in all_devices:
160160
with (
161161
subtests.test(device_index=nvml.device_get_index(device)),
162-
unsupported_before(device, nvml.DeviceArch.KEPLER),
162+
unsupported_before(device, None),
163163
):
164164
try:
165165
nvml.device_set_power_management_limit_v2(device, nvml.PowerScope.GPU, 10000)

0 commit comments

Comments
 (0)