Skip to content

Commit 13ffb39

Browse files
committed
Remove tests that don't apply to 12.9
1 parent c6c19f3 commit 13ffb39

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

‎cuda_bindings/tests/nvml/test_device.py‎

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ def test_grid_licensable_features(all_devices):
7070
nvml.GridLicenseExpiry(feature.license_expiry)
7171

7272

73-
def test_get_handle_by_uuidv(all_devices, subtests):
74-
for device in all_devices:
75-
with subtests.test(device_index=nvml.device_get_index(device)):
76-
uuid = nvml.device_get_uuid(device)
77-
if "Orin" in nvml.device_get_name(device) and len(uuid) == 36:
78-
pytest.skip("UUID lookup is unsupported on Orin, which reports a UUID without a GPU- prefix")
79-
with unsupported_before(device, None):
80-
new_handle = nvml.device_get_handle_by_uuidv(nvml.UUIDType.ASCII, uuid.encode("ascii"))
81-
assert new_handle == device
82-
83-
8473
def test_get_nv_link_supported_bw_modes(all_devices, subtests):
8574
for device in all_devices:
8675
with subtests.test(device_index=nvml.device_get_index(device)):
@@ -95,13 +84,6 @@ def test_get_nv_link_supported_bw_modes(all_devices, subtests):
9584
assert isinstance(mode, np.uint8)
9685

9786

98-
def test_device_get_pdi(all_devices):
99-
for device in all_devices:
100-
with unsupported_before(device, None):
101-
pdi = nvml.device_get_pdi(device)
102-
assert isinstance(pdi, int)
103-
104-
10587
def test_device_get_performance_modes(all_devices, subtests):
10688
for device in all_devices:
10789
with subtests.test(device_index=nvml.device_get_index(device)):
@@ -138,21 +120,6 @@ def test_read_prm_counters(all_devices, subtests):
138120
assert len(read_counters) == 5
139121

140122

141-
@pytest.mark.thread_unsafe(reason="API appears to be thread-unsafe (2026-06)")
142-
def test_read_write_prm(all_devices, subtests):
143-
for device in all_devices:
144-
with subtests.test(device_index=nvml.device_get_index(device)):
145-
# Docs say supported in BLACKWELL or later
146-
with unsupported_before(device, None):
147-
try:
148-
result = nvml.device_read_write_prm_v1(device, b"012345678")
149-
except nvml.NoPermissionError:
150-
pytest.skip("No permission to read/write PRM")
151-
assert isinstance(result, tuple)
152-
assert isinstance(result[0], int)
153-
assert isinstance(result[1], bytes)
154-
155-
156123
def test_get_power_management_limit(all_devices, subtests):
157124
for device in all_devices:
158125
# Docs say supported on KEPLER or later

0 commit comments

Comments
 (0)