Skip to content

Commit 93b8f25

Browse files
committed
test(cuda.core): serialize pool trimming around the driver race
— codex GPT-6 on behalf of Ralf — Mark only test_mempool_trim thread-unsafe, as proposed in NVIDIAgh-3350. Concurrent legacy-default-stream pool teardown and context synchronization reproduce a native driver crash without cuda.core; this test hit that failure twice in the Windows A100 CI configuration. Keep all parameter cases and assertions enabled while avoiding the known concurrent lifecycle. Full pre-commit validation passes. Signed-off-by: Ralf W. Grosse-Kunstleve <[email protected]>
1 parent 0f8ff10 commit 93b8f25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cuda_core/tests/test_memory.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,6 +2946,7 @@ def test_mempool_watermark_reset(memory_resource_factory, kind):
29462946
mr.close()
29472947

29482948

2949+
@pytest.mark.thread_unsafe(reason="CUDA legacy-default-stream mempool teardown/sync race (gh-3350)")
29492950
@pytest.mark.agent_authored(model="claude-opus-5-5")
29502951
def test_mempool_trim(memory_resource_factory):
29512952
device = Device()

0 commit comments

Comments
 (0)