Commit d8c7a01
Add backtrace to NCCLXException message (#744)
Summary:
Pull Request resolved: #744
Embed a symbolized stack trace in the NCCLXException message using
folly::symbolizer::getStackTraceStr(). Since NCCLXException is never
caught within the torchcomms ncclx layer and propagates to upstream
callers, embedding the backtrace directly in the message ensures it is
always visible via e.what() without requiring the caller to use a
separate exception tracer.
Added NCCLXExceptionIncludesBacktrace unit test to verify the
backtrace is present in the exception message.
Reviewed By: mingrany
Differential Revision: D93783839
fbshipit-source-id: d8be63b2daf97503740538849654bb791c908b7d1 parent ff5a65c commit d8c7a01
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1484 | 1484 | | |
1485 | 1485 | | |
1486 | 1486 | | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1487 | 1509 | | |
1488 | 1510 | | |
1489 | 1511 | | |
| |||
0 commit comments