Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/full/async_colocated/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ add_hpx_module(
COMPAT_HEADERS ${async_colocated_compat_headers}
DEPENDENCIES hpx_core
MODULE_DEPENDENCIES hpx_actions_base hpx_agas_base hpx_async_distributed
hpx_components_base hpx_naming_base
hpx_components hpx_components_base hpx_naming_base
CMAKE_SUBDIRS examples tests
)
1 change: 1 addition & 0 deletions libs/full/async_colocated/src/get_colocation_id.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <hpx/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/modules/async_base.hpp>
#include <hpx/modules/components.hpp>
#include <hpx/modules/components_base.hpp>
#include <hpx/modules/errors.hpp>
#include <hpx/modules/futures.hpp>
Expand Down
8 changes: 8 additions & 0 deletions libs/full/naming_base/include/hpx/naming_base/id_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ namespace hpx {
///////////////////////////////////////////////////////////////////////////
HPX_CXX_EXPORT inline id_type const invalid_id = id_type();

namespace lcos::detail {

// The definition lives in the components module. Declare it before
// future<id_type> can instantiate the primary shared-state template.
template <>
struct HPX_EXPORT future_data<hpx::id_type>;
} // namespace lcos::detail

namespace naming {

///////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2026 Divyanshi Talreja
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
Expand Down Expand Up @@ -70,6 +71,7 @@ void test(hpx::id_type there)

// verify for remote component
HPX_TEST_EQ(hpx::get_colocation_id(hpx::launch::sync, t1.get_id()), there);
HPX_TEST_EQ(hpx::get_colocation_id(t1.get_id()).get(), there);

HPX_TEST_EQ(
hpx::async<test_colocation_action>(hpx::colocated(t1.get_id())).get(),
Expand All @@ -80,6 +82,7 @@ void test(hpx::id_type there)

// verify for remote locality
HPX_TEST_EQ(hpx::get_colocation_id(hpx::launch::sync, there), there);
HPX_TEST_EQ(hpx::get_colocation_id(there).get(), there);

HPX_TEST_EQ(
hpx::async<test_colocation_action>(hpx::colocated(there)).get(), there);
Expand Down
Loading