STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::skeletons::debug_env Class Reference

This environment can be used to print the information about the generated task graph on the screen using std::cout. More...

Public Member Functions

template<bool isResult, typename WF , typename Mapper , typename... In>
void spawn_element (std::size_t tid, std::size_t result_id, WF &&wf, Mapper &&mapper, std::size_t num_succs, In &&... in) const
 Prints out the spawned node on the screen along with its corresponding dependencies information using std::cout. More...
 
template<bool isResult, typename WF , typename Mapper , typename... In>
void spawn_element (std::size_t tid, std::size_t result_id, std::vector< std::size_t > const &notifications, WF &&wf, Mapper &&, std::size_t num_succs, In &&... in) const
 
template<typename Skeleton , typename Coord , typename In , typename Out >
void pre_spawn (Skeleton &&skeleton, std::size_t lid_offset, Coord &&skeleton_size, Coord &&coord, In &&in, Out &&out, std::size_t cur_stage=0) const
 
template<typename Skeleton , typename... Args>
void post_spawn (Skeleton &&skeleton, Args &&... args) const
 
void set_num_succs (std::size_t tid, std::size_t num_succs) const
 
void init_location_info (std::size_t num_PEs, runtime::location_id PE_id)
 
std::size_t get_num_PEs () const
 
runtime::location_id get_PE_id () const
 

Detailed Description

This environment can be used to print the information about the generated task graph on the screen using std::cout.

Remember, in the cases that a dynamic (conditional ) dependence graphs such as do_while is used, you have to use this along with a real execution environment such as taskgraph_env

See also
do_while
taskgraph_env

Member Function Documentation

◆ spawn_element()

template<bool isResult, typename WF , typename Mapper , typename... In>
void stapl::skeletons::debug_env::spawn_element ( std::size_t  tid,
std::size_t  result_id,
WF &&  wf,
Mapper &&  mapper,
std::size_t  num_succs,
In &&...  in 
) const

Prints out the spawned node on the screen along with its corresponding dependencies information using std::cout.

Parameters
tidthe unique id assigned to the node in the graph
result_idresult_id of this task if it has one.
wfthe workfunction to be executed for this node
mapperthe output to output mapper for mapping the results
num_succsthe exact number of successors for this element. Remember that in some cases this value is set to stapl::defer_specs (when the spawner is in SET_HOLD mode). This number is shown in parenthesis in the output graph.
inthe producer information for the node's input arguments that will be translated as edge in the output graph

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