Creates a set_result parametric dependency given a op
. Basically this parametric dependency is only used for sinking values of skeletons which couldn't currently set their results directly without using sink_value skeleton.
More...
|
| set_result_pd (Op op) |
|
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 &skeleton_size, Coord const &producer_coord, FlowIndex const &) 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...
|
|
template<typename Coord > |
int | get_result_id (Coord const &, Coord const &) const |
|
Op | get_op () const |
|
template<typename Coord , typename SpanType > |
void | configure (Coord &&, SpanType &&) |
|
|
static constexpr std::size_t | in_port_size = Arity |
|
static constexpr std::size_t | op_arity = Arity |
|
template<std::size_t Arity, typename Op, typename Span, bool SetResult>
class stapl::skeletons::skeletons_impl::set_result_pd< Arity, Op, Span, SetResult >
Creates a set_result parametric dependency given a op
. Basically this parametric dependency is only used for sinking values of skeletons which couldn't currently set their results directly without using sink_value skeleton.
- Template Parameters
-
Arity | the number of inputs are passed to the skeleton |
SetResult | whether the skeleton should set the task results on the pg edge container or not |
Span | the span for the previous skeleton that is passed to set result_pd for detecting if the corresponding corresponding task is spanned or not |
Op | the workfunction to be used in each set_result parametric dependency |
◆ case_of()
template<std::size_t Arity, typename Op , typename Span , bool SetResult>
template<typename Coord , typename Visitor , typename In >
If coord is <idx, ...> it wraps the Op
with the following inputs and sends it to the visitor along with the m_op
.
- in<0>[idx]
- in<1>[idx]
- ...
- Parameters
-
coord | <i, j, k, ...> where i < n, j < m, k < p |
visitor | the information about Op and input is passed so that later this information can be converted to a node in the dependence graph |
in_flow | a tuple of input flows to consume from |
◆ consumer_count()
template<std::size_t Arity, typename Op , typename Span , bool SetResult>
template<typename Size , typename Coord , typename FlowIndex >
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
- Parameters
-
producer_coord | the producer coordination |
skeleton_size | the size of skeleton dimension |
- Template Parameters
-
FlowIndex | the flow index to which this request is sent |
The documentation for this class was generated from the following file: