Skip to content

Commit 7433f3a

Browse files
committed
test: skip addressing_mode/repair_status when KMD < R580
1 parent bdd6447 commit 7433f3a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

cuda_core/tests/system/test_system_device.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55

6-
from .conftest import skip_if_nvml_unsupported, unsupported_before
6+
from .conftest import SHOULD_SKIP_NVML_TESTS, skip_if_nvml_unsupported, unsupported_before
77

88
pytestmark = skip_if_nvml_unsupported
99

@@ -439,6 +439,10 @@ def test_module_id():
439439
assert module_id >= 0
440440

441441

442+
@pytest.mark.skipif(
443+
not SHOULD_SKIP_NVML_TESTS and system.get_kernel_mode_driver_version()[0] < 580,
444+
reason="nvmlDeviceGetAddressingMode requires an R580+ kernel-mode driver",
445+
)
442446
def test_addressing_mode():
443447
for device in system.Device.get_all_devices():
444448
# By docs, should be supported on TURING or newer, but experimentally,
@@ -457,6 +461,10 @@ def test_display_mode():
457461
assert isinstance(is_display_active, bool)
458462

459463

464+
@pytest.mark.skipif(
465+
not SHOULD_SKIP_NVML_TESTS and system.get_kernel_mode_driver_version()[0] < 580,
466+
reason="nvmlDeviceGetRepairStatus requires an R580+ kernel-mode driver",
467+
)
460468
def test_repair_status():
461469
for device in system.Device.get_all_devices():
462470
# By docs, should be supported on AMPERE or newer, but experimentally,

0 commit comments

Comments
 (0)