From 0c60687041f034250e0ec17da42643ed410f5b59 Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Thu, 10 Sep 2026 14:30:14 +0800 Subject: [PATCH] test(cuda.core): skip generic HOST pool regression before CUDA 13 Signed-off-by: Rui Luo --- cuda_core/tests/test_memory.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 06aae0cb605..befc3031e90 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -55,6 +55,7 @@ from cuda.core._memory._ipc import IPCBufferDescriptor from cuda.core._stream import default_stream from cuda.core._utils.cuda_utils import CUDAError, handle_return +from cuda.core._utils.version import driver_version from cuda.core.typing import ( ManagedMemoryLocationType, VirtualMemoryAccessType, @@ -1197,6 +1198,9 @@ def test_pinned_memory_resource_initialization(init_cuda): @pytest.mark.agent_authored(model="cursor-grok-4.5") def test_pinned_memory_resource_rejects_unsupported_host_pool(init_cuda): """allocate() must fail on devices without host memory pool support (see #2486).""" + if driver_version() < (13, 0, 0): + pytest.skip("Generic HOST memory pools require CUDA 13.0 or later") + device = init_cuda if device.properties.host_memory_pools_supported: pytest.skip("Device supports host memory pools")