pub unsafe extern "C" fn hipIpcGetMemHandle(
    handle: *mut hipIpcMemHandle_t,
    devPtr: *mut c_void
) -> hipError_t
Expand description

@brief Gets an interprocess memory handle for an existing device memory allocation

Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.

If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.

@param handle - Pointer to user allocated hipIpcMemHandle to return the handle in. @param devPtr - Base pointer to previously allocated device memory

@returns hipSuccess, hipErrorInvalidHandle, hipErrorOutOfMemory, hipErrorMapFailed,