hpx/executors/parallel_executor.hpp#

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace execution

Typedefs

using parallel_executor = parallel_policy_executor<hpx::launch>#
template<typename Policy>
struct parallel_policy_executor#
#include <parallel_executor.hpp>

A parallel_executor creates groups of parallel execution agents which execute in threads implicitly created by the executor. This executor prefers continuing with the creating thread first before executing newly created threads.

This executor conforms to the concepts of a TwoWayExecutor, and a BulkTwoWayExecutor

Public Types

using execution_category = parallel_execution_tag#

Associate the parallel_execution_tag executor tag type as a default with this executor.

using executor_parameters_type = static_chunk_size#

Associate the static_chunk_size executor parameters type as a default with this executor.

Public Functions

inline explicit constexpr parallel_policy_executor(threads::thread_priority priority, threads::thread_stacksize stacksize = threads::thread_stacksize::default_, threads::thread_schedule_hint schedulehint = {}, Policy l = parallel::execution::detail::get_default_policy<Policy>::call(), std::size_t hierarchical_threshold = hierarchical_threshold_default_)#

Create a new parallel executor.

inline explicit constexpr parallel_policy_executor(threads::thread_stacksize stacksize, threads::thread_schedule_hint schedulehint = {}, Policy l = parallel::execution::detail::get_default_policy<Policy>::call())#
inline explicit constexpr parallel_policy_executor(threads::thread_schedule_hint schedulehint, Policy l = parallel::execution::detail::get_default_policy<Policy>::call())#
inline explicit constexpr parallel_policy_executor(Policy l = parallel::execution::detail::get_default_policy<Policy>::call())#
inline explicit constexpr parallel_policy_executor(threads::thread_pool_base *pool, threads::thread_priority priority = threads::thread_priority::default_, threads::thread_stacksize stacksize = threads::thread_stacksize::default_, threads::thread_schedule_hint schedulehint = {}, Policy l = parallel::execution::detail::get_default_policy<Policy>::call(), std::size_t hierarchical_threshold = hierarchical_threshold_default_)#
template<typename Parameters>
inline std::size_t processing_units_count(Parameters&&) const#

Private Functions

template<typename Tag, typename Enable = std::enable_if_t<hpx::functional::is_tag_invocable_v<Tag, Policy>>>
inline decltype(auto) friend tag_invoke(Tag, parallel_policy_executor const &exec)#

Friends

template<typename Tag, typename Property, typename Enable = std::enable_if_t<hpx::functional::is_tag_invocable_v<Tag, Policy, Property>>>
inline friend parallel_policy_executor tag_invoke(Tag, parallel_policy_executor const &exec, Property &&prop)#
inline friend constexpr friend parallel_policy_executor tag_invoke (hpx::parallel::execution::with_processing_units_count_t, parallel_policy_executor const &exec, std::size_t num_cores)
inline friend constexpr friend std::size_t tag_invoke (hpx::parallel::execution::processing_units_count_t, parallel_policy_executor const &exec)
namespace parallel
namespace execution