HPX - High Performance ParalleX

PrevUpHomeNext

Struct task_execution_policy

hpx::parallel::v1::task_execution_policy

Synopsis

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


struct task_execution_policy {

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

Description

Extension: The class task_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. The algorithm returns a future representing the result of the corresponding algorithm when invoked with the parallel_execution_policy.

task_execution_policy public member functions

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

    Create a new task_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 task_execution_policy

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

    Create a new task_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 task_execution_policy


PrevUpHomeNext