GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
OpenMP parallel implementation of the Divide/conquer pattern. More...
Functions | |
template<typename Input , typename Divider , typename Solver , typename Combiner > | |
std::result_of< Solver(Input)>::type | grppi::divide_conquer (parallel_execution_omp &ex, Input &input, Divider &÷_op, Solver &&solve_op, Combiner &&combine_op) |
Invoke Divide/conquer pattern with OpenMP parallel execution. More... | |
OpenMP parallel implementation of the Divide/conquer pattern.
std::result_of<Solver(Input)>::type grppi::divide_conquer | ( | parallel_execution_omp & | ex, |
Input & | input, | ||
Divider && | divide_op, | ||
Solver && | solve_op, | ||
Combiner && | combine_op | ||
) |
Invoke Divide/conquer pattern with OpenMP parallel execution.
Input | Type used for the input problem. |
Divider | Callable type for the divider operation. |
Solver | Callable type for the solver operation. |
Combiner | Callable type for the combiner operation. |
ex | Sequential execution policy object. |
input | Input problem to be solved. |
divider_op | Divider operation. |
solver_op | Solver operation. |
combiner_op | Combiner operation. |