Skip to content

Commit 45db4ff

Browse files
committed
Adjust tests for platform-dependent behavior.
1 parent 7042437 commit 45db4ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cuda_core/tests/test_graph_mem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
ProgramOptions,
1414
launch,
1515
)
16+
from helpers import IS_WSL
1617
from helpers.buffers import compare_buffer_to_constant, make_scratch_buffer, set_buffer
1718

1819

@@ -115,6 +116,7 @@ def apply_kernels(mr, stream, out):
115116
assert compare_buffer_to_constant(out, 2)
116117

117118

119+
@pytest.mark.skipif(IS_WSL, reason="auto_free_on_launch not supported on WSL")
118120
@pytest.mark.parametrize("mode", ["global", "thread_local", "relaxed"])
119121
def test_graph_alloc_with_output(init_cuda, mode):
120122
"""Test for memory allocated in a graph being used outside the graph."""
@@ -191,9 +193,7 @@ def test_graph_mem_set_attributes(init_cuda, mode):
191193
gmr.trim()
192194

193195
# The high-water marks remain after free and trim.
194-
assert gmr.attributes.reserved_mem_current == 0
195196
assert gmr.attributes.reserved_mem_high > 0
196-
assert gmr.attributes.used_mem_current == 0
197197
assert gmr.attributes.used_mem_high > 0
198198

199199
# Reset the high-water marks.

0 commit comments

Comments
 (0)