class to create a functor that deletes a CUDA graph More...
#include <taskflow/cuda/cuda_graph.hpp>
Public Member Functions | |
| void | operator() (cudaGraph_t g) const |
| deletes a CUDA graph | |
class to create a functor that deletes a CUDA graph
This structure provides an overloaded function call operator to safely destroy a CUDA graph using cudaGraphDestroy.
|
inline |
deletes a CUDA graph
Calls cudaGraphDestroy to release the CUDA graph resource if it is valid.
| g | the CUDA graph to be destroyed |