cuda.bindings._v2.driver.ipc_close_mem_handle#
- cuda.bindings._v2.driver.ipc_close_mem_handle(uint64_t dptr)#
Attempts to close memory mapped with
cuIpcOpenMemHandle.Decrements the reference count of the memory returned by
cuIpcOpenMemHandleby 1. When the reference count reaches 0, this API unmaps the memory. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected. Any resources used to enable peer access will be freed if this is the last mapping using them. IPC functionality is restricted to devices with support for unified addressing on Linux and Windows operating systems. IPC functionality on Windows is supported for compatibility purposes but not recommended as it comes with performance cost. Users can test their device for IPC functionality by callingcuapiDeviceGetAttributewithCU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED.- Parameters:
dptr (uint64_t) – Device pointer returned by
cuIpcOpenMemHandle.
See also
cuIpcCloseMemHandle