Function rcudnn::cudaIpcCloseMemHandle[][src]

pub unsafe extern "C" fn cudaIpcCloseMemHandle(
    devPtr: *mut c_void
) -> cudaError
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 operating systems. IPC functionality is not supported on Tegra platforms.

\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