Skip to main content

cudaUserObjectRetain

Function cudaUserObjectRetain 

Source
pub unsafe extern "C" fn cudaUserObjectRetain(
    object: cudaUserObject_t,
    count: c_uint,
) -> cudaError_t
Expand description

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.

§Parameters

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

§Return value

See also: cudaUserObjectCreate, cudaUserObjectRelease, cudaGraphRetainUserObject, cudaGraphReleaseUserObject, cudaGraphCreate.