Function cuUserObjectRetain

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

\brief Retain a reference to a user object

Retains new references to a user object. The new references are owned by the caller.

See CUDA User Objects in the CUDA C++ Programming Guide for more information on user objects.

\param object - The object to retain \param count - The number of references to retain, typically 1. Must be nonzero and not larger than INT_MAX.

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE

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