Skip to content

Commit

Permalink
Stop-gap measure to make execution parameters compile for thread-exec…
Browse files Browse the repository at this point in the history
…utors

- adding missing #includes
  • Loading branch information
hkaiser committed Oct 2, 2017
1 parent b037eab commit fed3fea
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 11 deletions.
9 changes: 5 additions & 4 deletions hpx/parallel/execution.hpp
Expand Up @@ -8,12 +8,13 @@

#include <hpx/parallel/executors.hpp>
#include <hpx/parallel/executors/execution.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/timed_execution.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/parallel/executors/execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/execution_parameters.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/parallel/executors/timed_execution.hpp>

#endif

1 change: 1 addition & 0 deletions hpx/parallel/executors/default_executor.hpp
Expand Up @@ -11,6 +11,7 @@
#include <hpx/config.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/runtime/threads/executors/default_executor.hpp>

Expand Down
8 changes: 6 additions & 2 deletions hpx/parallel/executors/execution_parameters.hpp
Expand Up @@ -14,6 +14,7 @@
#include <hpx/runtime/serialization/base_object.hpp>
#include <hpx/traits/detail/wrap_int.hpp>
#include <hpx/traits/has_member_xxx.hpp>
#include <hpx/traits/is_executor.hpp>
#include <hpx/traits/is_executor_parameters.hpp>
#include <hpx/util/decay.hpp>
#include <hpx/util/detail/pack.hpp>
Expand Down Expand Up @@ -132,8 +133,11 @@ namespace hpx { namespace parallel { namespace execution

///////////////////////////////////////////////////////////////////////
// customization point for interface reset_thread_distribution()
template <typename Parameters, typename Enable>
struct reset_thread_distribution_fn_helper
template <typename Parameters, typename Executor_>
struct reset_thread_distribution_fn_helper<Parameters, Executor_,
typename std::enable_if<
hpx::traits::is_executor_any<Executor_>::value
>::type>
{
template <typename AnyParameters, typename Executor>
HPX_FORCEINLINE static void call(
Expand Down
8 changes: 5 additions & 3 deletions hpx/parallel/executors/execution_parameters_fwd.hpp
Expand Up @@ -93,7 +93,7 @@ namespace hpx { namespace parallel { namespace execution
template <typename Parameters, typename Enable = void>
struct maximal_number_of_chunks_fn_helper;

template <typename Parameters, typename Enable = void>
template <typename Parameters, typename Executor, typename Enable = void>
struct reset_thread_distribution_fn_helper;

template <typename Parameters, typename Enable = void>
Expand Down Expand Up @@ -210,12 +210,14 @@ namespace hpx { namespace parallel { namespace execution
HPX_FORCEINLINE auto
reset_thread_distribution(Parameters&& params, Executor&& exec)
-> decltype(reset_thread_distribution_fn_helper<
typename hpx::util::decay_unwrap<Parameters>::type
typename hpx::util::decay_unwrap<Parameters>::type,
typename hpx::util::decay_unwrap<Executor>::type
>::call(std::forward<Parameters>(params),
std::forward<Executor>(exec)))
{
return reset_thread_distribution_fn_helper<
typename hpx::util::decay_unwrap<Parameters>::type
typename hpx::util::decay_unwrap<Parameters>::type,
typename hpx::util::decay_unwrap<Executor>::type
>::call(std::forward<Parameters>(params),
std::forward<Executor>(exec));
}
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/executors/this_thread_executors.hpp
Expand Up @@ -9,6 +9,7 @@
#include <hpx/config.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/runtime/threads/executors/this_thread_executors.hpp>

Expand Down
5 changes: 3 additions & 2 deletions hpx/parallel/executors/thread_execution_parameters.hpp
Expand Up @@ -5,12 +5,13 @@

/// \file parallel/executors/thread_execution_parameters.hpp

#if !defined(HPX_PARALLEL_THREAD_EXECUTOR_PARAMETER_TRAITS_AUG_26_2015_1204PM)
#define HPX_PARALLEL_THREAD_EXECUTOR_PARAMETER_TRAITS_AUG_26_2015_1204PM
#if !defined(HPX_PARALLEL_THREAD_EXECUTION_PARAMETER_TRAITS_AUG_26_2015_1204PM)
#define HPX_PARALLEL_THREAD_EXECUTION_PARAMETER_TRAITS_AUG_26_2015_1204PM

#include <hpx/config.hpp>
#include <hpx/runtime/threads/thread_executor.hpp>
#include <hpx/traits/is_executor_parameters.hpp>
#include <hpx/traits/is_launch_policy.hpp>

#include <hpx/parallel/executors/execution_parameters.hpp>

Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/executors/thread_pool_attached_executors.hpp
Expand Up @@ -11,6 +11,7 @@
#include <hpx/config.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/runtime/threads/executors/thread_pool_attached_executors.hpp>

Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/executors/thread_pool_executors.hpp
Expand Up @@ -11,6 +11,7 @@
#include <hpx/config.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/runtime/threads/executors/thread_pool_executors.hpp>

Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/executors/thread_pool_os_executors.hpp
Expand Up @@ -11,6 +11,7 @@
#include <hpx/config.hpp>
#include <hpx/parallel/executors/thread_execution.hpp>
#include <hpx/parallel/executors/thread_execution_information.hpp>
#include <hpx/parallel/executors/thread_execution_parameters.hpp>
#include <hpx/parallel/executors/thread_timed_execution.hpp>
#include <hpx/runtime/threads/executors/thread_pool_os_executors.hpp>

Expand Down

0 comments on commit fed3fea

Please sign in to comment.