We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ea8a46 commit 919babaCopy full SHA for 919baba
1 file changed
cuda_core/tests/system/test_system_device.py
@@ -772,16 +772,19 @@ def test_nvlink():
772
nvlink_info = device.get_nvlink(link)
773
assert isinstance(nvlink_info, _device.NvlinkInfo)
774
775
+ with unsupported_before(device, None):
776
+ state = nvlink_info.state
777
+ assert isinstance(state, bool)
778
+
779
+ if not state:
780
+ continue
781
782
with unsupported_before(device, None):
783
version = nvlink_info.version
784
assert isinstance(version, tuple)
785
assert len(version) == 2
786
assert all(isinstance(i, int) for i in version)
787
- with unsupported_before(device, None):
- state = nvlink_info.state
- assert isinstance(state, bool)
-
788
789
def test_utilization():
790
for device in system.Device.get_all_devices():
0 commit comments