HPX - High Performance ParalleX

PrevUpHomeNext

Struct parallel_execution_policy

hpx::parallel::v1::parallel_execution_policy

Synopsis

// In header: <hpx/parallel/execution_policy.hpp>


struct parallel_execution_policy {

  // public member functions
  parallel_execution_policy 
  operator()(threads::executor &, std::size_t = 0) const;
  parallel_execution_policy operator()(std::size_t) const;
};

Description

The class parallel_execution_policy is an execution policy type used as a unique type to disambiguate parallel algorithm overloading and indicate that a parallel algorithm's execution may be parallelized.

parallel_execution_policy public member functions

  1. parallel_execution_policy 
    operator()(threads::executor & exec, std::size_t chunk_size = 0) const;

    Create a new parallel_execution_policy referencing an executor and a chunk size.

    Parameters:

    chunk_size

    [in] The chunk size controlling the number of iterations scheduled to be executed on the same HPX thread

    exec

    [in] The executor to use for the execution of the parallel algorithm the returned execution policy is used with

    Returns:

    The new parallel_execution_policy

  2. parallel_execution_policy operator()(std::size_t chunk_size) const;

    Create a new parallel_execution_policy referencing a chunk size.

    Parameters:

    chunk_size

    [in] The chunk size controlling the number of iterations scheduled to be executed on the same HPX thread

    Returns:

    The new parallel_execution_policy


PrevUpHomeNext