cuda.bindings._v2.driver.user_object_release#
- cuda.bindings._v2.driver.user_object_release(intptr_t object, unsigned int count)#
Release a reference to a user object.
Releases user object references owned by the caller. The object’s destructor is invoked if the reference count reaches zero. It is undefined behavior to release references not owned by the caller, or to use a user object handle after all references are released. See CUDA User Objects in the CUDA C++ Programming Guide for more information on user objects.
- Parameters:
object (intptr_t) – The object to release.
count (unsigned int) – The number of references to release, typically 1. Must be nonzero and not larger than INT_MAX.
See also
cuUserObjectRelease