Skip to content

Commit

Permalink
Always delete OTF2 archive if exists at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 1, 2020
1 parent 55bacb3 commit c8e38a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/apex/apex_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ inline unsigned int sc_nprocessors_onln()
macro (APEX_UNTIED_TIMERS, untied_timers, bool, false) \
macro (APEX_TAU, use_tau, bool, false) \
macro (APEX_OTF2, use_otf2, bool, false) \
macro (APEX_OTF2_TESTING, otf2_testing, bool, false) \
macro (APEX_OTF2_COLLECTIVE_SIZE, otf2_collective_size, int, 1) \
macro (APEX_TRACE_EVENT, use_trace_event, bool, false) \
macro (APEX_POLICY, use_policy, bool, true) \
Expand Down
5 changes: 3 additions & 2 deletions src/apex/otf2_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,11 @@ namespace apex {
static bool created = false;
if (created) return true;

if (apex_options::otf2_testing() && my_saved_node_id == 0) {
if (my_saved_node_id == 0) {
// is this a good idea?
/* NO! why? because we don't know which rank we are, and
/* NO! why? because we might not know which rank we are, and
* we don't know if the archive is supposed to be there or not.
* DO IT ANYWAY
*/
std::cout << "removing path!" << std::endl; fflush(stdout);
remove_path(apex_options::otf2_archive_path());
Expand Down

0 comments on commit c8e38a3

Please sign in to comment.