Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cuda.core: skip Host NUMA test at collection time
  • Loading branch information
Michael Wang
Michael Wang committed Sep 10, 2026
commit 9d2861920e2b1fd14c486036e6df9ad0cf38cc53
10 changes: 5 additions & 5 deletions cuda_core/tests/memory/test_managed_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from cuda.bindings import driver
from cuda.core import Device, Host, ManagedBuffer
from cuda.core._utils.version import binding_version, driver_version

# Managed-memory prefetch and CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION
# operate at physical-page granularity. Test buffers must each occupy a full
Expand Down Expand Up @@ -358,13 +359,12 @@ def test_from_handle(self, init_cuda):
def test_last_prefetch_location_initially_none(self, external_managed_buffer):
assert external_managed_buffer.last_prefetch_location is None

@pytest.mark.skipif(
binding_version() < (13, 0, 0) or driver_version() < (13, 0, 0),
reason="Host NUMA last-prefetch location requires CUDA 13",
)
@pytest.mark.agent_authored(model="gpt-5")
def test_last_prefetch_location_roundtrip_host_numa(self, location_ops_device, managed_buffer):
from cuda.core._utils.version import binding_version, driver_version

if binding_version() < (13, 0, 0) or driver_version() < (13, 0, 0):
pytest.skip("Host NUMA last-prefetch location requires CUDA 13")

stream = location_ops_device.create_stream()
location = Host(numa_id=0)
managed_buffer.prefetch(location, stream=stream)
Expand Down