Repository navigation
Commit b102d26
committed
test(cuda.core): request init_cuda for test_latchkernel
test_latchkernel constructed 3 DummyUnifiedMemoryResource instances (via
make_scratch_buffer) plus a LegacyPinnedMemoryResource (via LatchKernel)
without init_cuda. On Windows and aarch64 the ctypes-pointer/Buffer/MR
chains form cycles that survive refcounting, so the live-MemoryResource
count stays elevated past the test and the next init_cuda test
(test_oom_diagnostics_probe_basics_is_live_and_cheap) is blamed by the
leftover check (UnreleasedMemoryResourceWarning, escalated to an error).
Migrating to init_cuda lets the teardown gate collect the cyclic leftovers,
matching the pattern from 68f832c for the other MR-constructing tests.1 parent f50ec59 commit b102d26
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments