Skip to content

Commit

Permalink
Fix HPX barriers in OTF2 output
Browse files Browse the repository at this point in the history
Fixes #142
  • Loading branch information
severinstrobl committed Apr 6, 2021
1 parent 6a945ac commit 64ddaa8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/apex/otf2_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,8 @@ namespace apex {

std::vector<std::string> fullmap_vector;
if (my_saved_node_count > 1) {
hpx::lcos::barrier("apex1", my_saved_node_count, my_saved_node_id);
hpx::lcos::barrier barrier("apex1", my_saved_node_count, my_saved_node_id);
barrier.wait();
constexpr char const* bcast_basename = "/otf2/broadcast/regions/";
if (my_saved_node_id > 0) {
//printf("%d: calling broadcast_from from %s\n", my_saved_node_id, __func__);
Expand Down Expand Up @@ -1638,7 +1639,8 @@ namespace apex {

std::vector<std::string> fullmap_vector;
if (my_saved_node_count > 1) {
hpx::lcos::barrier("apex2", my_saved_node_count, my_saved_node_id);
hpx::lcos::barrier barrier("apex2", my_saved_node_count, my_saved_node_id);
barrier.wait();
constexpr char const* bcast_basename = "/otf2/broadcast/metrics/";
if (my_saved_node_id > 0) {
//printf("%d: calling broadcast_from from %s\n", my_saved_node_id, __func__);
Expand Down

0 comments on commit 64ddaa8

Please sign in to comment.