From 4f9be79759d01e422aecb33ceff2a05c203f784a Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 30 Nov 2026 15:25:55 -0500 Subject: [PATCH 1/2] test(cuda.core): run test_alloc_memory_type_host and accept the driver's NOT_SUPPORTED test_alloc_memory_type_host skipped on every runner because graph allocation nodes with a host pool location return CUDA_ERROR_NOT_SUPPORTED. Drivers up to CUDA 13.4 support graph allocations only in device memory: cuGraphAddMemAllocNode and stream-captured allocations from a host pool both reject HOST and HOST_NUMA locations, although host memory pools themselves are supported. Treat CUDA_ERROR_NOT_SUPPORTED as the expected current result instead of a skip, fail on any other error, and keep the round-trip check for a driver that accepts the allocation. Remove the "not currently run in any CI job" comment. Closes #3588. Co-Authored-By: Claude Opus 5.5 --- cuda_core/tests/graph/test_graph_definition.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index 3919d7b377ec..55212e953453 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,13 @@ 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, as documented on GraphMemoryType.HOST. 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()) From 0147a4431e0e0aa1056fbb2ae4afed8292ce422c Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 30 Nov 2026 16:08:16 -0500 Subject: [PATCH 2/2] test(cuda.core): drop the stale GraphMemoryType.HOST reference from a test comment Co-Authored-By: Claude Opus 5.5 --- cuda_core/tests/graph/test_graph_definition.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index 55212e953453..87100dc68899 100644 --- a/cuda_core/tests/graph/test_graph_definition.py +++ b/cuda_core/tests/graph/test_graph_definition.py @@ -942,9 +942,8 @@ def test_alloc_memory_type_host(init_cuda): node = g.allocate(ALLOC_SIZE, memory_type=GraphMemoryType.HOST) except CUDAError as e: # Drivers up to and including CUDA 13.4 support graph allocations only - # in device memory, as documented on GraphMemoryType.HOST. Any other - # error fails the test; a driver that adds support runs the round-trip - # check below instead. + # 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