tf::cudaGraphDeleter struct

a functor for deleting a CUDA graph

This structure provides an overloaded function call operator to safely destroy a CUDA graph using cudaGraphDestroy.

Public functions

void operator()(cudaGraph_t g) const
deletes a CUDA graph

Function documentation

void tf::cudaGraphDeleter::operator()(cudaGraph_t g) const

deletes a CUDA graph

Parameters
g the CUDA graph to be destroyed

Calls cudaGraphDestroy to release the CUDA graph resource if it is valid.