Commit 4b2d3d8
Improve timeout handling: skip timed-out algorithms and cap big benchmarks at 15000 (#718)
* Fix hanging issue in autotune timeout mechanism
- Replace manual polling loop with Julia's built-in timedwait() function
- Avoid using Base.throwto() which can cause hangs with sleeping tasks
- Let timed-out tasks continue in background rather than trying to kill them
- Use Channels for clean communication between tasks
- Close channels properly to prevent resource leaks
This fixes the issue where autotune would hang indefinitely when trying
to interrupt tasks that exceeded the timeout limit.
* Improve timeout handling: skip timed-out algorithms and cap big benchmarks
- Algorithms that timeout are automatically excluded from larger matrix sizes
- This prevents wasting time on algorithms that are already too slow
- Cap :big benchmark sizes at 15000 instead of 20000 for stability
- 20000x20000 matrices often cause issues even on powerful computers
- Add tracking of timed-out algorithms per element type
- Report number of skipped algorithms in summary output
- Update documentation to reflect these improvements
This makes the autotuning process much more efficient by not repeatedly
testing algorithms that have already proven to be too slow.
---------
Co-authored-by: ChrisRackauckas <[email protected]>1 parent 47e7223 commit 4b2d3d8
File tree
3 files changed
+41
-6
lines changed- docs/src/tutorials
- lib/LinearSolveAutotune/src
3 files changed
+41
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
140 | 163 | | |
141 | 164 | | |
142 | 165 | | |
| |||
210 | 233 | | |
211 | 234 | | |
212 | 235 | | |
213 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
214 | 239 | | |
215 | 240 | | |
216 | 241 | | |
| |||
301 | 326 | | |
302 | 327 | | |
303 | 328 | | |
304 | | - | |
| 329 | + | |
305 | 330 | | |
306 | 331 | | |
307 | 332 | | |
| |||
316 | 341 | | |
317 | 342 | | |
318 | 343 | | |
319 | | - | |
| 344 | + | |
320 | 345 | | |
321 | 346 | | |
322 | 347 | | |
| |||
0 commit comments