|
|
| farm_pd (Generator generator) |
| |
| template<typename Coord , typename Visitor , typename In > |
| void | case_of (Coord const &, Coord const &coord, Visitor &visitor, In &&in_flow) const |
| | If coord is <idx, ...> it wraps the Op with the following inputs and sends it to the visitor along with the m_op. More...
|
| |
| template<typename Size , typename Coord , typename FlowIndex > |
| std::size_t | consumer_count (Size const &, Coord const &, FlowIndex) const |
| | determines how many of the instances of this parametric dependency will be consuming from a producer with a given coordinate. This is a reverse query as compared to case_of More...
|
| |
|
op_type | get_op () const |
| |
|
template<typename Coord > |
| int | get_result_id (Coord const &, Coord const &) const |
| |
|
template<typename Coord , typename Span > |
| void | configure (Coord &&, Span &&) |
| |
template<typename Generator>
class stapl::skeletons::skeletons_impl::farm_pd< Generator >
This parametric dependency is used in farms skeleton to generate the initial seeds of computation.
This parametric dependency is similar to the zip parametric dependency, except it sends a farm_stub to the user-provided generator as well.
Example - the inputs to a spawned element created by this skeleton would be:
- farm_stub - which allows adding more work to the farm
- in<0>[idx]
- in<1>[idx]
- in<2>[idx]
- ...
- Template Parameters
-
| Op | the workfunction to be applied on each element |
| i | the number of input flows |
- See also
- zip