Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove get_perfetto_output_filename().clear() #89

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions source/lib/omnitrace/library/components/mpi_gotcha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ mpi_gotcha::update()
tim::mpi::set_rank(_rank);
tim::mpi::set_size(_size);
tim::settings::default_process_suffix() = _rank;
get_perfetto_output_filename().clear();

OMNITRACE_BASIC_VERBOSE(0, "[pid=%i] MPI rank: %i (%i), MPI size: %i (%i)\n",
process::get_id(), tim::mpi::rank(), _rank,
Expand Down Expand Up @@ -338,7 +337,7 @@ mpi_gotcha::audit(const gotcha_data_t& _data, audit::outgoing, int _retval)
static thread_local int _num_updates = 0;
static int _disable_after =
tim::get_env<int>("OMNITRACE_MPI_MAX_COMM_UPDATES", 4);
if(update() && ++_num_updates >= _disable_after) disable_comm_intercept();
if(_num_updates++ < _disable_after) update();
}
}
}
Expand Down