pub unsafe extern "C" fn cudaIpcCloseMemHandle(
devPtr: *mut c_void,
) -> cudaError_t
Expand description
\brief Attempts to close memory mapped with cudaIpcOpenMemHandle
Decrements the reference count of the memory returnd by ::cudaIpcOpenMemHandle by 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 calling ::cudaDeviceGetAttribute with ::cudaDevAttrIpcEventSupport
\param devPtr - Device pointer returned by ::cudaIpcOpenMemHandle
\returns ::cudaSuccess, ::cudaErrorMapBufferObjectFailed, ::cudaErrorNotSupported, ::cudaErrorInvalidValue \note_init_rt \note_callback
\sa ::cudaMalloc, ::cudaFree, ::cudaIpcGetEventHandle, ::cudaIpcOpenEventHandle, ::cudaIpcGetMemHandle, ::cudaIpcOpenMemHandle, ::cuIpcCloseMemHandle