In a 2D stencil, parametric dependencies are defined in such a way that each node depends on every 9 node in its surroundings including itself from the previous timestep.
More...
|
| stencil_2d_pd (Op op) |
|
template<typename Coord , typename Visitor , typename In > |
void | case_of (Coord const &skeleton_size, Coord const &coord, Visitor &visitor, In &&in_flow) const |
| If coord is <i, h, ...> it wraps the WF with the following inputs and sends it to the visitor along with the m_wf . More...
|
|
template<typename Size , typename Coord , typename FlowIndex > |
std::size_t | consumer_count (Size const &skeleton_size, Coord const &, 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...
|
|
Op | get_op () const |
|
template<typename Coord > |
int | get_result_id (Coord const &, Coord const &) const |
|
template<typename Coord , typename Span > |
void | configure (Coord &&, Span &&) |
|
|
static constexpr std::size_t | in_port_size = 1 |
|
static constexpr std::size_t | op_arity = 1 |
|
template<typename Op>
class stapl::skeletons::skeletons_impl::stencil_2d_pd< Op >
In a 2D stencil, parametric dependencies are defined in such a way that each node depends on every 9 node in its surroundings including itself from the previous timestep.
- Template Parameters
-
Op | the operation to be applied at each point on the 9 points received. |
◆ case_of()
template<typename Op >
template<typename Coord , typename Visitor , typename In >
If coord is <i, h, ...> it wraps the WF
with the following inputs and sends it to the visitor along with the m_wf
.
- Parameters
-
skeleton_size | <n, m, p, ...> where each element is potentially multi-dimensional. |
coord | <i, j, k, ...> where i < n, j < m, k < p |
visitor | the information about WF 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<typename Op >
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
-
skeleton_size | the size of this skeleton |
producer_coord | the coordinate of the producer element which is providing data to this parametric dependency |
- Template Parameters
-
FlowIndex | the flow index on which this request is sent |
The documentation for this class was generated from the following file: