STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Static Public Attributes
stapl::skeletons::skeletons_impl::serial_pd< Op, i > Class Template Reference

A serial_pd parametric dependency used in the serial skeleton. More...

Public Member Functions

 serial_pd (Op op, std::size_t number_of_sets)
 
template<typename... Args>
void case_of (Args &&... args) const
 Dispatches the case_of request with the expanded indices.
 
template<typename Coord , typename Visitor , typename In , std::size_t... Index>
void apply_case_of (Coord &&skeleton_size, Coord &&coord, Visitor &visitor, In &&in_flow, index_sequence< Index... > &&) const
 Specifies the dependencies for a serial set of task. More...
 
template<typename Size , typename Coord , typename FlowIndex >
std::size_t consumer_count (Size const &skeleton_size, Coord const &producer_coord, FlowIndex) const
 
std::size_t get_number_of_sets () const
 
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 &&)
 

Public Types

using op_type = Op
 

Static Public Attributes

static constexpr std::size_t in_port_size = i + 1
 
static constexpr std::size_t op_arity = i
 

Detailed Description

template<typename Op, int i>
class stapl::skeletons::skeletons_impl::serial_pd< Op, i >

A serial_pd parametric dependency used in the serial skeleton.

See also
serial

Member Function Documentation

◆ apply_case_of()

template<typename Op , int i>
template<typename Coord , typename Visitor , typename In , std::size_t... Index>
void stapl::skeletons::skeletons_impl::serial_pd< Op, i >::apply_case_of ( Coord &&  skeleton_size,
Coord &&  coord,
Visitor &  visitor,
In &&  in_flow,
index_sequence< Index... > &&   
) const

Specifies the dependencies for a serial set of task.

Parameters
skeleton_size<n, m, p, ...> where each element is potentially multi-dimensional.
coord<i, j, k, ...> where i < n, j < m, k < p
visitorthe information about Op and input is passed so that later this information can be converted to a node in the dependence graph
in_flowa tuple of input flows to consume from

The documentation for this class was generated from the following file: