tf::cudaTask class

class to create a task handle of a CUDA Graph node

Constructors, destructors, conversion operators

cudaTask() defaulted
constructs an empty cudaTask
cudaTask(const cudaTask&) defaulted
copy-constructs a cudaTask

Public functions

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

Friends

auto operator<<(std::ostream&, const cudaTask&) -> std::ostream&
overload of ostream inserter operator for cudaTask

Function documentation

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

adds precedence links from this to other tasks

Template parameters
Ts parameter pack
Parameters
tasks one or multiple tasks
Returns *this

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

adds precedence links from other tasks to this

Template parameters
Ts parameter pack
Parameters
tasks one or multiple tasks
Returns *this

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

dumps the task through an output stream

Parameters
os an output stream target