Back to Taskflow

tf::cudaGraphCreator class

docs/classtf_1_1cudaGraphCreator.html

4.0.0843 B
Original Source

tf::cudaGraphCreator class

class to create functors that construct CUDA graphs

This class define functors to new CUDA graphs using cudaGraphCreate.

Public functions

auto operator()() const -> cudaGraph_tcreates a new CUDA graphauto operator()(cudaGraph_t graph) const -> cudaGraph_treturn the given CUDA graph

Function documentation

cudaGraph_t tf::cudaGraphCreator::operator()() const

creates a new CUDA graph

| Returns | A newly created cudaGraph_t instance. |

Exceptions
If

Calls cudaGraphCreate to generate a CUDA native graph and returns it. If the graph creation fails, an error is reported.