Skip to content

Commit ebd5453

Browse files
authored
Skipping VirtualMemoryResource tests on WSL (#1127)
* Disabling VirtualMemoryResource tests on WSL * pre-commit updates
1 parent bf8fd4c commit ebd5453

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cuda_core/tests/test_memory.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from cuda.core.experimental._utils.cuda_utils import handle_return
2929
from cuda.core.experimental.utils import StridedMemoryView
3030

31-
from cuda_python_test_helpers import supports_ipc_mempool
31+
from cuda_python_test_helpers import IS_WSL, supports_ipc_mempool
3232

3333
POOL_SIZE = 2097152 # 2MB size
3434

@@ -324,6 +324,9 @@ def test_vmm_allocator_basic_allocation():
324324
"""
325325
if platform.system() == "Windows":
326326
pytest.skip("VirtualMemoryResource is not supported on Windows TCC")
327+
if IS_WSL:
328+
pytest.skip("VirtualMemoryResource is not supported on WSL")
329+
327330
device = Device()
328331
device.set_current()
329332
options = VirtualMemoryResourceOptions()
@@ -360,6 +363,8 @@ def test_vmm_allocator_policy_configuration():
360363
"""
361364
if platform.system() == "Windows":
362365
pytest.skip("VirtualMemoryResource is not supported on Windows TCC")
366+
if IS_WSL:
367+
pytest.skip("VirtualMemoryResource is not supported on WSL")
363368
device = Device()
364369
device.set_current()
365370

@@ -417,6 +422,8 @@ def test_vmm_allocator_grow_allocation():
417422
"""
418423
if platform.system() == "Windows":
419424
pytest.skip("VirtualMemoryResource is not supported on Windows TCC")
425+
if IS_WSL:
426+
pytest.skip("VirtualMemoryResource is not supported on WSL")
420427
device = Device()
421428
device.set_current()
422429

0 commit comments

Comments
 (0)