Taskflow  2.4-master-branch
tf::cudaTask Class Reference

handle to a node in a cudaGraph More...

#include <cuda_task.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 More...
 
template<typename... Ts>
cudaTasksucceed (Ts &&... tasks)
 adds precedence links from other tasks to this More...
 
cudaTaskname (const std::string &name)
 assigns a name to the task More...
 
const std::stringname () const
 queries the name of the task
 
size_t num_successors () const
 queries the number of successors
 
bool empty () const
 queries if the task is associated with a cudaNode
 

Friends

class cudaFlow
 

Detailed Description

handle to a node in a cudaGraph

Member Function Documentation

◆ name()

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

assigns a name to the task

Parameters
namea std::string acceptable string
Returns
*this

◆ precede()

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

adds precedence links from this to other tasks

Template Parameters
Ts...parameter 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
Ts...parameter pack
Parameters
tasksone or multiple tasks
Returns
*this

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