Repository navigation
Commit 52facbc
Kill the compiler's process group on timeout
`tileiras` runs `ptxas`. On a timeout, `run_and_collect` killed `tileiras`
alone, leaving `ptxas` running unattended for however long the kernel takes
it to compile.
Outside of Windows the compiler now runs in a session of its own (`detach`),
and a timeout kills its process group. Since the compiler then no longer
receives the terminal's Ctrl-C, an interrupted wait kills the group too. On
Windows, `detach` would take the compiler out of the job object that kills
it when Julia exits, so there only the compiler is killed, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZLLYWFZYfnGcR3TSUNK4A1 parent 73e9bd2 commit 52facbc
3 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
261 | 279 | | |
262 | 280 | | |
263 | | - | |
| 281 | + | |
| 282 | + | |
264 | 283 | | |
265 | 284 | | |
266 | 285 | | |
| |||
270 | 289 | | |
271 | 290 | | |
272 | 291 | | |
273 | | - | |
| 292 | + | |
274 | 293 | | |
275 | 294 | | |
276 | 295 | | |
277 | 296 | | |
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
281 | 303 | | |
282 | 304 | | |
283 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
0 commit comments