Skip to content

Commit

Permalink
#2074: Support early abort when tracing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Jun 21, 2024
1 parent dd8ff75 commit f9ce741
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vt/collective/collective_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ void CollectiveAnyOps<instance>::abort(
auto myrt = tls_rt ? tls_rt : ::vt::rt;
if (myrt) {
#if vt_check_enabled(trace_enabled)
//--- Try to flush most of the traces before aborting
myrt->theTrace->cleanupTracesFile();
if (myrt->theTrace) {
//--- Try to flush most of the traces before aborting
myrt->theTrace->cleanupTracesFile();
}
#endif
myrt->abort(str, code);
} else if (vt::debug::preConfig()->vt_throw_on_abort) {
Expand Down

0 comments on commit f9ce741

Please sign in to comment.