Skip to content

Commit

Permalink
Fixing build issue with HPX due to modified sample_value function
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 17, 2021
1 parent 92f690f commit abe99f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apex/apex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,10 @@ void yield_adapter(std::shared_ptr<hpx::util::external_timer::task_wrapper> tt_p
static_pointer_cast<APEX_TOP_LEVEL_PACKAGE::task_wrapper>(tt_ptr));
}

void sample_value_adapter(const std::string &name, double value) {
APEX_TOP_LEVEL_PACKAGE::sample_value(name, value, false);
}

static void apex_register_with_hpx(void) {
hpx::util::external_timer::registration reg;
reg.type = hpx::util::external_timer::init_flag;
Expand All @@ -2241,7 +2245,7 @@ static void apex_register_with_hpx(void) {
reg.record.new_task_address = &new_task_adapter;
hpx::util::external_timer::register_external_timer(reg);
reg.type = hpx::util::external_timer::sample_value_flag;
reg.record.sample_value = &APEX_TOP_LEVEL_PACKAGE::sample_value;
reg.record.sample_value = &sample_value_adapter;
hpx::util::external_timer::register_external_timer(reg);
reg.type = hpx::util::external_timer::send_flag;
reg.record.send = &APEX_TOP_LEVEL_PACKAGE::send;
Expand Down

0 comments on commit abe99f9

Please sign in to comment.