Commit f8c3ea2
committed
update cuda delegate resource free pipeline for safety and segfault-free
Pull Request resolved: #14905
This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314984329
@exported-using-ghexport
Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)1 parent 13bdf55 commit f8c3ea2
2 files changed
+19
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 289 | | |
302 | 290 | | |
303 | 291 | | |
| |||
318 | 306 | | |
319 | 307 | | |
320 | 308 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
331 | 316 | | |
332 | 317 | | |
333 | 318 | | |
| |||
346 | 331 | | |
347 | 332 | | |
348 | 333 | | |
| 334 | + | |
349 | 335 | | |
350 | 336 | | |
351 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
278 | 283 | | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| 287 | + | |
| 288 | + | |
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
| |||
0 commit comments