Loading...
Searching...
No Matches
tf::cudaTask Class Reference

class to create a task handle of a CUDA Graph node More...

#include <taskflow/cuda/cuda_graph.hpp>

Public Member Functions

 cudaTask ()=default
 constructs an empty cudaTask
 
 cudaTask (const cudaTask &)=default
 copy-constructs a cudaTask
 
cudaTaskoperator= (const cudaTask &)=default
 copy-assigns a cudaTask
 
template<typename... Ts>
cudaTaskprecede (Ts &&... tasks)
 adds precedence links from this to other tasks
 
template<typename... Ts>
cudaTasksucceed (Ts &&... tasks)
 adds precedence links from other tasks to this
 
size_t num_successors () const
 queries the number of successors
 
size_t num_predecessors () const
 queries the number of dependents
 
auto type () const
 queries the type of this task
 
void dump (std::ostream &os) const
 dumps the task through an output stream
 

Friends

template<typename Creator, typename Deleter>
class cudaGraphBase
 
template<typename Creator, typename Deleter>
class cudaGraphExecBase
 
class cudaFlow
 
class cudaFlowCapturer
 
class cudaFlowCapturerBase
 
std::ostream & operator<< (std::ostream &os, const cudaTask &ct)
 overload of ostream inserter operator for cudaTask
 

Detailed Description

class to create a task handle of a CUDA Graph node

Member Function Documentation

◆ dump()

void tf::cudaTask::dump ( std::ostream & os) const
inline

dumps the task through an output stream

Parameters
osan output stream target

◆ precede()

template<typename... Ts>
cudaTask & tf::cudaTask::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>
cudaTask & tf::cudaTask::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: