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_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.