From 22fa8bf1b3b1a6c993ecd584e8076124cef56814 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Fri, 18 Jun 2021 19:49:19 +0200 Subject: [PATCH] Fix compilation of future_overhead_report.cpp --- .../local/future_overhead_report.cpp | 41 ++++--------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/tests/performance/local/future_overhead_report.cpp b/tests/performance/local/future_overhead_report.cpp index 978162d17934..a3ccf561a82c 100644 --- a/tests/performance/local/future_overhead_report.cpp +++ b/tests/performance/local/future_overhead_report.cpp @@ -7,30 +7,17 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include #include -#include #include #include -#include -#include -#include #include #include -#include using hpx::program_options::options_description; using hpx::program_options::value; @@ -49,17 +36,6 @@ static std::size_t numa_sensitive = 0; static std::uint64_t num_threads = 1; static std::string info_string = ""; -const char* exec_name(hpx::execution::parallel_executor const&) -{ - return "parallel_executor"; -} - -const char* exec_name( - hpx::parallel::execution::parallel_executor_aggregated const&) -{ - return "parallel_executor_aggregated"; -} - /////////////////////////////////////////////////////////////////////////////// // we use globals here to prevent the delay from being optimized away double global_scratch = 0; @@ -126,7 +102,8 @@ void measure_function_futures_create_thread_hierarchical_placement( l.count_down(1); }; auto const thread_func = - hpx::threads::detail::thread_function_nullary{func}; + hpx::threads::detail::thread_function_nullary{ + func}; for (std::size_t t = 0; t < num_threads; ++t) { auto const hint = hpx::threads::thread_schedule_hint( @@ -194,7 +171,7 @@ int hpx_main(variables_map& vm) } } - return hpx::finalize(); + return hpx::local::finalize(); } /////////////////////////////////////////////////////////////////////////////// @@ -220,8 +197,8 @@ int main(int argc, char* argv[]) // clang-format on // Initialize and run HPX. - hpx::init_params init_args; + hpx::local::init_params init_args; init_args.desc_cmdline = cmdline; - return hpx::init(argc, argv, init_args); + return hpx::local::init(hpx_main, argc, argv, init_args); }