Function rcudnn::cudaUserObjectRetain [−][src]
pub unsafe extern "C" fn cudaUserObjectRetain(
object: *mut CUuserObject_st,
count: u32
) -> cudaError
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 ::cudaSuccess, ::cudaErrorInvalidValue
\sa ::cudaUserObjectCreate, ::cudaUserObjectRelease, ::cudaGraphRetainUserObject, ::cudaGraphReleaseUserObject, ::cudaGraphCreate