Function rcudnn_sys::cudaGraphRetainUserObject[][src]

pub unsafe extern "C" fn cudaGraphRetainUserObject(
    graph: cudaGraph_t,
    object: cudaUserObject_t,
    count: c_uint,
    flags: c_uint
) -> cudaError_t
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 ::cudaGraphUserObjectMove transfers references from the calling thread, rather than create new references. Pass 0 to create new references.

\return ::cudaSuccess, ::cudaErrorInvalidValue

\sa ::cudaUserObjectCreate ::cudaUserObjectRetain, ::cudaUserObjectRelease, ::cudaGraphReleaseUserObject, ::cudaGraphCreate