Skip to content

Commit

Permalink
#1909: Fix startup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and PhilMiller committed Aug 30, 2022
1 parent 287fd57 commit f1b75c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vt/messaging/active.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ ActiveMessenger::ActiveMessenger()
};
}

void ActiveMessenger::initialize() {
comm_ = theContext()->getComm();
}

void ActiveMessenger::startup() {
auto const this_node = theContext()->getNode();
bare_handler_dummy_elm_id_for_lb_data_ =
elm::ElmIDBits::createBareHandler(this_node);

comm_ = theContext()->getComm();

#if vt_check_enabled(lblite)
// Hook to collect LB data about objgroups
thePhase()->registerHookCollective(phase::PhaseHook::DataCollection, [this]{
Expand Down
1 change: 1 addition & 0 deletions src/vt/messaging/active.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ struct ActiveMessenger : runtime::component::PollableComponent<ActiveMessenger>
std::string name() override { return "ActiveMessenger"; }

void startup() override;
void initialize() override;

/**
* \brief Mark a message as a termination message.
Expand Down

0 comments on commit f1b75c6

Please sign in to comment.