Skip to content

Commit 9df1ed7

Browse files
committed
Adapting modules hash, datastructures, memory
Signed-off-by: Hartmut Kaiser <[email protected]>
1 parent d983721 commit 9df1ed7

File tree

221 files changed

+1094
-1085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+1094
-1085
lines changed

cmake/HPX_AddModule.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,12 @@ function(add_hpx_module libname modulename)
189189
endif()
190190

191191
# Decide output path and template file
192-
set(module_macro_headers)
192+
set(module_macro_headers "\n#include <hpx/${modulename}/config/defines.hpp>\n")
193193
set(global_header
194194
"${CMAKE_CURRENT_BINARY_DIR}/include/hpx/modules/${modulename}.hpp"
195195
)
196196
if(${modulename}_GLOBAL_HEADER_MODULE_GEN)
197197
# generate list of macro headers to #include
198-
list(LENGTH ${modulename}_MACRO_HEADERS macro_headers)
199-
if(macro_headers GREATER 0)
200-
set(module_macro_headers "\n")
201-
endif()
202198
foreach(header_file ${${modulename}_MACRO_HEADERS})
203199
set(module_macro_headers
204200
"${module_macro_headers}#include <${header_file}>\n"

examples/throttle/throttle/server/throttle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
#include <hpx/config.hpp>
1010
#if !defined(HPX_COMPUTE_DEVICE_CODE)
11-
#include <hpx/datastructures/detail/dynamic_bitset.hpp>
1211
#include <hpx/future.hpp>
1312
#include <hpx/hpx.hpp>
1413
#include <hpx/include/actions.hpp>
1514
#include <hpx/include/components.hpp>
15+
#include <hpx/modules/datastructures.hpp>
1616
#include <hpx/mutex.hpp>
1717

1818
#include <cstddef>

examples/tuplespace/central_tuplespace/server/tuple.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#pragma once
88

9-
#include <hpx/datastructures/serialization/serializable_any.hpp>
9+
#include <hpx/modules/datastructures.hpp>
1010
#include <hpx/modules/serialization.hpp>
1111

1212
#include <type_traits>

init/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ add_library(hpx_init STATIC ${hpx_init_SOURCES} ${hpx_init_HEADERS})
5151
set_target_properties(hpx_init PROPERTIES POSITION_INDEPENDENT_CODE ON)
5252
target_link_libraries(hpx_init PRIVATE hpx_full)
5353
target_link_libraries(hpx_init PRIVATE hpx_private_flags)
54-
target_compile_definitions(
55-
hpx_init PRIVATE HPX_APPLICATION_EXPORTS HPX_LIBRARY_EXPORTS
56-
HPX_BINARY_DOESNT_USE_CXX_MODULES
57-
)
54+
target_compile_definitions(hpx_init PRIVATE HPX_LIBRARY_EXPORTS)
5855
target_include_directories(
5956
hpx_init PUBLIC $<BUILD_INTERFACE:${hpx_init_HEADER_ROOT}>
6057
$<INSTALL_INTERFACE:include>
6158
)
59+
if(HPX_WITH_CXX_MODULES)
60+
target_link_libraries(hpx_init PRIVATE hpx_core_module_if)
61+
set_target_properties(hpx_init PROPERTIES CXX_SCAN_FOR_MODULES ON)
62+
endif()
6263

6364
set_property(TARGET hpx_init PROPERTY FOLDER "Core")
6465

libs/core/affinity/src/parse_affinity_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2007-2024 Hartmut Kaiser
1+
// Copyright (c) 2007-2025 Hartmut Kaiser
22
//
33
// SPDX-License-Identifier: BSL-1.0
44
// Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -8,7 +8,7 @@
88
#include <hpx/affinity/detail/partlit.hpp>
99
#include <hpx/affinity/parse_affinity_options.hpp>
1010
#include <hpx/assert.hpp>
11-
#include <hpx/datastructures/tuple.hpp>
11+
#include <hpx/modules/datastructures.hpp>
1212
#include <hpx/modules/errors.hpp>
1313
#include <hpx/topology/topology.hpp>
1414

libs/core/algorithms/include/hpx/parallel/algorithms/detail/dispatch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#include <hpx/config.hpp>
1111
#include <hpx/algorithms/traits/segmented_iterator_traits.hpp>
12-
#include <hpx/datastructures/tuple.hpp>
1312
#include <hpx/execution/executors/execution.hpp>
1413
#include <hpx/executors/exception_list.hpp>
1514
#include <hpx/executors/execution_policy.hpp>
15+
#include <hpx/modules/datastructures.hpp>
1616
#include <hpx/modules/errors.hpp>
1717
#include <hpx/modules/type_support.hpp>
1818
#include <hpx/parallel/util/detail/algorithm_result.hpp>

libs/core/algorithms/include/hpx/parallel/algorithms/for_loop.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,11 +737,11 @@ namespace hpx { namespace experimental {
737737

738738
#include <hpx/config.hpp>
739739
#include <hpx/assert.hpp>
740-
#include <hpx/datastructures/tuple.hpp>
741740
#include <hpx/execution/algorithms/detail/predicates.hpp>
742741
#include <hpx/iterator_support/range.hpp>
743742
#include <hpx/iterator_support/traits/is_iterator.hpp>
744743
#include <hpx/modules/concepts.hpp>
744+
#include <hpx/modules/datastructures.hpp>
745745
#include <hpx/modules/executors.hpp>
746746
#include <hpx/modules/tag_invoke.hpp>
747747
#include <hpx/modules/threading_base.hpp>

libs/core/algorithms/include/hpx/parallel/algorithms/make_heap.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ namespace hpx {
192192
#else // DOXYGEN
193193

194194
#include <hpx/config.hpp>
195-
#include <hpx/datastructures/tuple.hpp>
196195
#include <hpx/execution/executors/execution.hpp>
197196
#include <hpx/execution/executors/execution_parameters.hpp>
198197
#include <hpx/execution/traits/is_execution_policy.hpp>
@@ -201,6 +200,7 @@ namespace hpx {
201200
#include <hpx/futures/future.hpp>
202201
#include <hpx/iterator_support/traits/is_iterator.hpp>
203202
#include <hpx/modules/concepts.hpp>
203+
#include <hpx/modules/datastructures.hpp>
204204
#include <hpx/modules/tag_invoke.hpp>
205205
#include <hpx/modules/type_support.hpp>
206206
#include <hpx/parallel/algorithms/detail/dispatch.hpp>

libs/core/algorithms/include/hpx/parallel/algorithms/merge.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ namespace hpx {
282282

283283
#include <hpx/config.hpp>
284284
#include <hpx/assert.hpp>
285-
#include <hpx/datastructures/tuple.hpp>
286285
#include <hpx/execution/algorithms/detail/predicates.hpp>
287286
#include <hpx/execution/executors/execution_parameters.hpp>
288287
#include <hpx/executors/execution_policy.hpp>
289288
#include <hpx/functional/invoke.hpp>
290289
#include <hpx/iterator_support/traits/is_iterator.hpp>
291290
#include <hpx/iterator_support/unwrap_iterator.hpp>
291+
#include <hpx/modules/datastructures.hpp>
292292
#include <hpx/modules/itt_notify.hpp>
293293
#include <hpx/modules/type_support.hpp>
294294
#include <hpx/parallel/algorithms/copy.hpp>

libs/core/algorithms/include/hpx/parallel/algorithms/reduce_by_key.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ namespace hpx { namespace experimental {
121121
#else
122122

123123
#include <hpx/config.hpp>
124-
#include <hpx/datastructures/tuple.hpp>
125124
#include <hpx/execution/executors/execution.hpp>
126125
#include <hpx/iterator_support/range.hpp>
127126
#include <hpx/iterator_support/transform_iterator.hpp>
127+
#include <hpx/modules/datastructures.hpp>
128128
#include <hpx/parallel/algorithms/for_each.hpp>
129129
#include <hpx/parallel/algorithms/inclusive_scan.hpp>
130130
#include <hpx/parallel/container_algorithms/copy.hpp>

0 commit comments

Comments
 (0)