Function cuGraphRetainUserObject

Source
pub unsafe extern "C" fn cuGraphRetainUserObject(
    graph: CUgraph,
    object: CUuserObject,
    count: c_uint,
    flags: c_uint,
) -> CUresult
Expand description

\brief 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.

\param graph - The graph to associate the reference with \param object - The user object to retain a reference for \param count - The number of references to add to the graph, typically 1. Must be nonzero and not larger than INT_MAX. \param flags - The optional flag ::CU_GRAPH_USER_OBJECT_MOVE transfers references from the calling thread, rather than create new references. Pass 0 to create new references.

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE

\sa ::cuUserObjectCreate, ::cuUserObjectRetain, ::cuUserObjectRelease, ::cuGraphReleaseUserObject, ::cuGraphCreate