pub unsafe extern "C" fn cuGraphRetainUserObject(
graph: CUgraph,
object: CUuserObject,
count: c_uint,
flags: c_uint,
) -> CUresultExpand description
Retain a reference to a user object from a graph.
Creates or moves user object references that will be owned by a CUDA graph.
See CUDA User Objects in the CUDA C++ Programming Guide for more information on user objects.
ยงParameters
graph: The graph to associate the reference with.object: The user object to retain a reference for.count: The number of references to add to the graph, typically 1. Must be nonzero and not larger than INT_MAX.flags: The optional flagCUuserObjectRetain_flags_enum::CU_GRAPH_USER_OBJECT_MOVEtransfers references from the calling thread, rather than create new references. Pass 0 to create new references.