Skip to content

Commit e087038

Browse files
committed
Guard memory affinity on pre-Kepler devices
1 parent 2adfe8e commit e087038

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cuda_core/tests/system/test_system_device.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def test_affinity(subtests):
113113
affinity_scope=scope.value,
114114
affinity_api="get_memory_affinity",
115115
):
116-
affinity = device.get_memory_affinity(scope)
116+
with unsupported_before(device, typing.DeviceArch.KEPLER):
117+
affinity = device.get_memory_affinity(scope)
117118
assert isinstance(affinity, list)
118119

119120

0 commit comments

Comments
 (0)