Skip to main content

cuUserObjectRetain

Function cuUserObjectRetain 

Source
pub unsafe extern "C" fn cuUserObjectRetain(
    object: CUuserObject,
    count: c_uint,
) -> CUresult
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: cuUserObjectCreate, cuUserObjectRelease, cuGraphRetainUserObject, cuGraphReleaseUserObject, cuGraphCreate.