From af417c8740b801b74a83b25e8d3e70978b47fddd Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Fri, 10 Oct 2025 17:00:17 -0700 Subject: [PATCH 1/2] Disabling VirtualMemoryResource tests on WSL --- cuda_core/tests/test_memory.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index cfbc92977..b9a673d5c 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -28,7 +28,7 @@ from cuda.core.experimental._utils.cuda_utils import handle_return from cuda.core.experimental.utils import StridedMemoryView -from cuda_python_test_helpers import supports_ipc_mempool +from cuda_python_test_helpers import supports_ipc_mempool, IS_WSL POOL_SIZE = 2097152 # 2MB size @@ -324,6 +324,9 @@ def test_vmm_allocator_basic_allocation(): """ if platform.system() == "Windows": pytest.skip("VirtualMemoryResource is not supported on Windows TCC") + if IS_WSL: + pytest.skip("VirtualMemoryResource is not supported on WSL") + device = Device() device.set_current() options = VirtualMemoryResourceOptions() @@ -360,6 +363,8 @@ def test_vmm_allocator_policy_configuration(): """ if platform.system() == "Windows": pytest.skip("VirtualMemoryResource is not supported on Windows TCC") + if IS_WSL: + pytest.skip("VirtualMemoryResource is not supported on WSL") device = Device() device.set_current() @@ -417,6 +422,8 @@ def test_vmm_allocator_grow_allocation(): """ if platform.system() == "Windows": pytest.skip("VirtualMemoryResource is not supported on Windows TCC") + if IS_WSL: + pytest.skip("VirtualMemoryResource is not supported on WSL") device = Device() device.set_current() From 46af80d26d56e634b0ec6d9dcf41320e470855ea Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Fri, 10 Oct 2025 17:10:55 -0700 Subject: [PATCH 2/2] pre-commit updates --- cuda_core/tests/test_memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index b9a673d5c..904997f11 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -28,7 +28,7 @@ from cuda.core.experimental._utils.cuda_utils import handle_return from cuda.core.experimental.utils import StridedMemoryView -from cuda_python_test_helpers import supports_ipc_mempool, IS_WSL +from cuda_python_test_helpers import IS_WSL, supports_ipc_mempool POOL_SIZE = 2097152 # 2MB size