cuda.bindings._v2.driver.mem_release#
- cuda.bindings._v2.driver.mem_release(uint64_t handle)#
Release a memory handle representing a memory allocation which was previously allocated through cuMemCreate.
Frees the memory that was allocated on a device through cuMemCreate. The memory allocation will be freed when all outstanding mappings to the memory are unmapped and when all outstanding references to the handle (including it’s shareable counterparts) are also released. The generic memory handle can be freed when there are still outstanding mappings made with this handle. Each time a recipient process imports a shareable handle, it needs to pair it with
cuMemReleasefor the handle to be freed. Ifhandleis not a valid handle the behavior is undefined.- Parameters:
handle (uint64_t) – Value of handle which was returned previously by cuMemCreate.
See also
cuMemRelease