Skip to content

Commit

Permalink
#2074: Support early call to vtAbort when tracing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable authored and cwschilly committed Sep 20, 2024
1 parent 0df6e8a commit 7a3c869
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 7a3c869

Please sign in to comment.