Skip to content

Commit

Permalink
Don't register components if in local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Aug 18, 2023
1 parent 17ff8c7 commit 2ec900d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/full/init_runtime/src/hpx_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,11 @@ namespace hpx {

for (auto& registry : component_registries)
{
hpx::register_startup_function([registry]() {
registry->register_component_type();
hpx::register_startup_function([&, registry]() {
if (cmdline.rtcfg_.mode_ != runtime_mode::local)
{
registry->register_component_type();
}
});
}

Expand Down

0 comments on commit 2ec900d

Please sign in to comment.