Back to Taskflow

tf::cudaTask class

docs/classtf_1_1cudaTask.html

4.0.02.7 KB
Original Source

tf::cudaTask class

class to create a task handle of a CUDA Graph node

Constructors, destructors, conversion operators

cudaTask() defaultedconstructs an empty cudaTaskcudaTask(const cudaTask&) defaultedcopy-constructs a cudaTask

Public functions

auto operator=(const cudaTask&) -> cudaTask& defaultedcopy-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 thisauto num_successors() const -> size_tqueries the number of successorsauto num_predecessors() const -> size_tqueries the number of dependentsauto type() const -> autoqueries the type of this taskvoid dump(std::ostream& os) constdumps 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
Parameters
---
tasks
Returns

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

adds precedence links from other tasks to this

Template parameters
Ts
Parameters
---
tasks
Returns

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

dumps the task through an output stream

Parameters
os