Repository navigation
Commit 9f2c8f2
test: poll for kernel-arg Buffer release to handle async cleanup
The freeing assertion at the end of test_kernel_args_buffer_lifetime
failed on free-threaded Python (py3.14t) because cuGraphExecDestroy
releases its user-object references via an asynchronous DPC, and free-
threaded CPython's deferred ref counting can need an extra GC pass to
settle. Poll the weakref with a bounded timeout and per-iteration GC
instead of asserting eagerly.
Co-authored-by: Cursor <[email protected]>1 parent a9271aa commit 9f2c8f2
1 file changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
14 | 33 | | |
15 | 34 | | |
16 | 35 | | |
| |||
502 | 521 | | |
503 | 522 | | |
504 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
505 | 529 | | |
506 | 530 | | |
507 | 531 | | |
| |||
531 | 555 | | |
532 | 556 | | |
533 | 557 | | |
534 | | - | |
535 | | - | |
| 558 | + | |
536 | 559 | | |
537 | 560 | | |
538 | 561 | | |
| |||
0 commit comments