class to create functors that construct CUDA graphs More...
#include <taskflow/cuda/cuda_graph.hpp>
Public Member Functions | |
| cudaGraph_t | operator() () const |
| creates a new CUDA graph | |
| cudaGraph_t | operator() (cudaGraph_t graph) const |
| return the given CUDA graph | |
class to create functors that construct CUDA graphs
This class define functors to new CUDA graphs using cudaGraphCreate.
|
inline |
creates a new CUDA graph
Calls cudaGraphCreate to generate a CUDA native graph and returns it. If the graph creation fails, an error is reported.
cudaGraph_t instance. | If | CUDA graph creation fails, an error is logged. |