Repository navigation
Commit 2ff8747
test(cuda.core): keep the cycle collector out of the latch window in test_error_timing_incomplete (NVIDIA#3310)
* test(cuda.core): keep the cycle collector out of the latch window in test_error_timing_incomplete
The test failed with "DID NOT RAISE" after about 60 s, the latch
timeout, on one CI row. The likely cause is a finalizer that the cycle
collector runs while the latch holds the stream: a free of memory
synchronizes the context and waits for the latch.
Collect before the launch and disable the collector until the latch
is released. Create the end event before the launch. Use a 10 s latch
and fail with the blocked time when the record call stalls.
Closes NVIDIA#3296.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(cuda.core): time the whole latch window; request init_cuda
Start the blocked-time check before the latch launch, so that a stall
in the launch or the record reports the time. Re-enable the collector
in its own finally block. Request init_cuda, as the test builds a
pinned memory resource through the latch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent 6681b39 commit 2ff8747
1 file changed
Lines changed: 38 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | | - | |
132 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
133 | 140 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
137 | 166 | | |
138 | | - | |
139 | 167 | | |
140 | 168 | | |
141 | 169 | | |
| |||
0 commit comments