diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index 3919d7b377ec..87100dc68899 100644 --- a/cuda_core/tests/graph/test_graph_definition.py +++ b/cuda_core/tests/graph/test_graph_definition.py @@ -926,7 +926,6 @@ def test_alloc_peer_access(mempool_device_x2): assert d1.device_id in node.peer_access -# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5.6-sol") def test_alloc_memory_type_host(init_cuda): """HOST graph alloc nodes reconstruct memory_type from the driver, not the Python argument.""" @@ -942,9 +941,12 @@ def test_alloc_memory_type_host(init_cuda): try: node = g.allocate(ALLOC_SIZE, memory_type=GraphMemoryType.HOST) except CUDAError as e: - if "CUDA_ERROR_NOT_SUPPORTED" in str(e): - pytest.skip("Driver does not support graph alloc memory_type='host'") - raise + # Drivers up to and including CUDA 13.4 support graph allocations only + # in device memory. Any other error fails the test; a driver that adds + # support runs the round-trip check below instead. + if "CUDA_ERROR_NOT_SUPPORTED" not in str(e): + raise + return expected_dptr = node.dptr succ = node.record(Device().create_event())