struct
cudaGraphCreatora functor for creating a CUDA graph
This structure provides an overloaded function call operator to create a new CUDA graph using cudaGraphCreate
.
Public functions
- auto operator()() const -> cudaGraph_t
- creates a new CUDA graph
- auto operator()(cudaGraph_t graph) const -> cudaGraph_t
- return 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 | CUDA graph creation fails, an error is logged. |
Calls cudaGraphCreate
to generate a CUDA native graph and returns it. If the graph creation fails, an error is reported.