Skip to content

Commit 8c35376

Browse files
committed
Skip NUMA-aware Host coerce tests on CUDA 12 builds
Host(numa_id=N) and Host.numa_current() require CUDA 13 bindings; the TestLocationCoerce passthroughs were missing the binding_version guard already used by test_preferred_location_roundtrip_host_numa.
1 parent 5e2c051 commit 8c35376

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cuda_core/tests/memory/test_managed_ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,20 @@ def test_host_passthrough(self):
324324

325325
def test_host_numa_passthrough(self):
326326
from cuda.core._memory._managed_location import _coerce_location
327+
from cuda.core._utils.version import binding_version
327328

329+
if binding_version() < (13, 0, 0):
330+
pytest.skip("Host(numa_id=N) requires CUDA 13 bindings")
328331
spec = _coerce_location(Host(numa_id=3))
329332
assert spec.kind == "host_numa"
330333
assert spec.id == 3
331334

332335
def test_host_numa_current_passthrough(self):
333336
from cuda.core._memory._managed_location import _coerce_location
337+
from cuda.core._utils.version import binding_version
334338

339+
if binding_version() < (13, 0, 0):
340+
pytest.skip("Host.numa_current() requires CUDA 13 bindings")
335341
spec = _coerce_location(Host.numa_current())
336342
assert spec.kind == "host_numa_current"
337343

0 commit comments

Comments
 (0)