GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Functions
OpenMP parallel farm pattern

OpenMP implementation of the Farm pattern. More...

Collaboration diagram for OpenMP parallel farm pattern:

Functions

template<typename Generator , typename Consumer >
void grppi::farm (parallel_execution_omp &ex, Generator generate_op, Consumer consume_op)
 Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator and a consumer. More...
 
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm (parallel_execution_omp &ex, Generator generate_op, Transformer transform_op, Consumer consume_op)
 Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator, a transformer, and a consumer. More...
 

Detailed Description

OpenMP implementation of the Farm pattern.

Function Documentation

template<typename Generator , typename Consumer >
void grppi::farm ( parallel_execution_omp ex,
Generator  generate_op,
Consumer  consume_op 
)

Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
ConsumerCallable type for the consume operation.
Parameters
exOpenMP arallel execution policy object.
generate_opGenerator operation.
consume_opConsumer operation.
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm ( parallel_execution_omp ex,
Generator  generate_op,
Transformer  transform_op,
Consumer  consume_op 
)

Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator, a transformer, and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
TranformerCallable type for the tranformation operation.
ConsumerCallable type for the consume operation.
Parameters
exOpenMP Parallel execution policy object.
generate_opGenerator operation.
transform_opTransformer operation.
consume_opConsumer operation.