Skip to content

Commit c9a850b

Browse files
committed
Adapting HPX modules of levels 16, 17, and 18 to C++ modules
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
1 parent 4053778 commit c9a850b

69 files changed

Lines changed: 388 additions & 347 deletions

File tree

Some content is hidden

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

.jenkins/lsu-perftests/ctest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
77

88
# This is a dummy file to trigger the upload of the perftests reports
9-
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
9+
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
1010

1111
set(CTEST_TEST_TIMEOUT 300)
1212
set(CTEST_BUILD_PARALLELISM 20)

.jenkins/lsu/ctest.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Distributed under the Boost Software License, Version 1.0. (See accompanying
66
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
77

8-
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
8+
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
99

1010
set(CTEST_TEST_TIMEOUT 300)
1111
set(CTEST_BUILD_PARALLELISM 20)
@@ -65,6 +65,7 @@ if(NOT CTEST_BUILD_ID AND __ctest_build_id)
6565
set(CTEST_BUILD_ID ${__ctest_build_id})
6666
endif()
6767
set(ctest_submission_result ${ctest_submission_result} "Configure: "
68+
6869
${__configure_result} "\n"
6970
)
7071

libs/core/affinity/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ include(HPX_AddModule)
2626
add_hpx_module(
2727
core affinity
2828
GLOBAL_HEADER_GEN ON
29+
GLOBAL_HEADER_MODULE_GEN ON
2930
SOURCES ${affinity_sources}
3031
HEADERS ${affinity_headers}
3132
COMPAT_HEADERS ${affinity_compat_headers}

libs/core/affinity/include/hpx/affinity/affinity_data.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#pragma once
88

99
#include <hpx/config.hpp>
10-
#include <hpx/topology/topology.hpp>
10+
#include <hpx/modules/topology.hpp>
1111

1212
#include <atomic>
1313
#include <cstddef>
@@ -21,7 +21,7 @@ namespace hpx::threads::policies::detail {
2121
///////////////////////////////////////////////////////////////////////////
2222
// Structure holding the information related to thread affinity selection
2323
// for the shepherd threads of this instance
24-
struct HPX_CORE_EXPORT affinity_data
24+
HPX_CXX_EXPORT struct HPX_CORE_EXPORT affinity_data
2525
{
2626
affinity_data();
2727

libs/core/affinity/include/hpx/affinity/parse_affinity_options.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <hpx/config.hpp>
1414
#include <hpx/modules/errors.hpp>
15-
#include <hpx/topology/cpu_mask.hpp>
15+
#include <hpx/modules/topology.hpp>
1616

1717
#include <cstddef>
1818
#include <string>
@@ -22,14 +22,14 @@
2222

2323
namespace hpx::threads {
2424

25-
HPX_CORE_EXPORT void parse_affinity_options(std::string const& spec,
26-
std::vector<mask_type>& affinities, std::size_t used_cores,
27-
std::size_t max_cores, std::size_t num_threads,
25+
HPX_CXX_EXPORT HPX_CORE_EXPORT void parse_affinity_options(
26+
std::string const& spec, std::vector<mask_type>& affinities,
27+
std::size_t used_cores, std::size_t max_cores, std::size_t num_threads,
2828
std::vector<std::size_t>& num_pus, bool use_process_mask,
2929
error_code& ec = throws);
3030

3131
// backwards compatibility helper
32-
inline void parse_affinity_options(std::string const& spec,
32+
HPX_CXX_EXPORT inline void parse_affinity_options(std::string const& spec,
3333
std::vector<mask_type>& affinities, error_code& ec = throws)
3434
{
3535
std::vector<std::size_t> num_pus;

libs/core/affinity/src/affinity_data.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
#include <hpx/affinity/parse_affinity_options.hpp>
99
#include <hpx/assert.hpp>
1010
#include <hpx/modules/errors.hpp>
11-
#include <hpx/topology/cpu_mask.hpp>
12-
#include <hpx/topology/topology.hpp>
11+
#include <hpx/modules/topology.hpp>
1312

1413
#include <algorithm>
1514
#include <atomic>

libs/core/affinity/src/parse_affinity_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <hpx/assert.hpp>
1111
#include <hpx/modules/datastructures.hpp>
1212
#include <hpx/modules/errors.hpp>
13-
#include <hpx/topology/topology.hpp>
13+
#include <hpx/modules/topology.hpp>
1414

1515
#include <hwloc.h>
1616

libs/core/command_line_handling_local/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019-2024 The STE||AR-Group
1+
# Copyright (c) 2019-2025 The STE||AR-Group
22
#
33
# SPDX-License-Identifier: BSL-1.0
44
# Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -62,6 +62,7 @@ include(HPX_AddModule)
6262
add_hpx_module(
6363
core command_line_handling_local
6464
GLOBAL_HEADER_GEN ON
65+
GLOBAL_HEADER_MODULE_GEN ON
6566
SOURCES ${command_line_handling_local_sources}
6667
HEADERS ${command_line_handling_local_headers}
6768
DEPENDENCIES ${command_line_handling_local_dependencies}

libs/core/command_line_handling_local/include/hpx/command_line_handling_local/command_line_handling_local.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace hpx::local::detail {
2222

2323
///////////////////////////////////////////////////////////////////////////
24-
struct HPX_CORE_EXPORT command_line_handling
24+
HPX_CXX_EXPORT struct HPX_CORE_EXPORT command_line_handling
2525
{
2626
command_line_handling(hpx::util::runtime_configuration rtcfg,
2727
std::vector<std::string> ini_config,
@@ -89,25 +89,26 @@ namespace hpx::local::detail {
8989
};
9090

9191
///////////////////////////////////////////////////////////////////////////
92-
HPX_CORE_EXPORT std::string runtime_configuration_string(
92+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::string runtime_configuration_string(
9393
command_line_handling const& cfg);
9494

95-
HPX_CORE_EXPORT std::vector<std::string> prepend_options(
95+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::vector<std::string> prepend_options(
9696
std::vector<std::string>&& args, std::string&& options);
9797

98-
HPX_CORE_EXPORT std::string convert_to_log_file(std::string const& dest);
98+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::string convert_to_log_file(
99+
std::string const& dest);
99100

100-
HPX_CORE_EXPORT std::size_t handle_num_cores_default(
101+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::size_t handle_num_cores_default(
101102
util::manage_config& cfgmap,
102103
hpx::program_options::variables_map const& vm, std::size_t num_threads,
103104
std::size_t num_default_cores);
104105

105-
HPX_CORE_EXPORT std::size_t get_number_of_default_threads(
106+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::size_t get_number_of_default_threads(
106107
bool use_process_mask);
107-
HPX_CORE_EXPORT std::size_t get_number_of_default_cores(
108+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::size_t get_number_of_default_cores(
108109
bool use_process_mask);
109110

110-
HPX_CORE_EXPORT void print_config(
111+
HPX_CXX_EXPORT HPX_CORE_EXPORT void print_config(
111112
std::vector<std::string> const& ini_config);
112113
} // namespace hpx::local::detail
113114

libs/core/command_line_handling_local/include/hpx/command_line_handling_local/json_config_file.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
namespace hpx::local::detail {
1919

20-
HPX_CORE_EXPORT std::vector<std::string> read_json_config_file_options(
20+
HPX_CXX_EXPORT HPX_CORE_EXPORT std::vector<std::string>
21+
read_json_config_file_options(
2122
std::string const& filename, util::commandline_error_mode error_mode);
2223

2324
} // namespace hpx::local::detail

0 commit comments

Comments
 (0)