Taskflow  3.2.0-Master-Branch
Loading...
Searching...
No Matches
tf::syclTask Class Reference

handle to a node of the internal CUDA graph More...

#include <sycl_task.hpp>

Public Member Functions

 syclTask ()=default
 constructs an empty syclTask
 
 syclTask (const syclTask &)=default
 copy-constructs a syclTask
 
syclTaskoperator= (const syclTask &)=default
 copy-assigns a syclTask
 
template<typename... Ts>
syclTaskprecede (Ts &&... tasks)
 adds precedence links from this to other tasks
 
template<typename... Ts>
syclTasksucceed (Ts &&... tasks)
 adds precedence links from other tasks to this
 
syclTaskname (const std::string &name)
 assigns a name to the task
 
const std::stringname () const
 queries the name of the task
 
size_t num_successors () const
 queries the number of successors
 
size_t num_dependents () const
 queries the number of dependents
 
bool empty () const
 queries if the task is associated with a syclNode
 
template<typename T >
void dump (T &ostream) const
 dumps the task through an output stream
 
template<typename V >
void for_each_successor (V &&visitor) const
 applies an visitor callable to each successor of the task
 
template<typename V >
void for_each_dependent (V &&visitor) const
 applies an visitor callable to each dependents of the task
 

Friends

class syclFlow
 
std::ostreamoperator<< (std::ostream &, const syclTask &)
 overload of ostream inserter operator for syclTask
 

Detailed Description

handle to a node of the internal CUDA graph

Member Function Documentation

◆ dump()

template<typename T >
void tf::syclTask::dump ( T &  ostream) const

dumps the task through an output stream

Template Parameters
Toutput stream type with insertion operator (<<) defined
Parameters
ostreaman output stream target

◆ name()

syclTask & tf::syclTask::name ( const std::string name)
inline

assigns a name to the task

Parameters
namea std::string acceptable string
Returns
*this

◆ precede()

template<typename... Ts>
syclTask & tf::syclTask::precede ( Ts &&...  tasks)

adds precedence links from this to other tasks

Template Parameters
Tsparameter pack
Parameters
tasksone or multiple tasks
Returns
*this

◆ succeed()

template<typename... Ts>
syclTask & tf::syclTask::succeed ( Ts &&...  tasks)

adds precedence links from other tasks to this

Template Parameters
Tsparameter pack
Parameters
tasksone or multiple tasks
Returns
*this

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