Function rcudnn::cudaMemPoolExportToShareableHandle[][src]

pub unsafe extern "C" fn cudaMemPoolExportToShareableHandle(
    shareableHandle: *mut c_void,
    memPool: *mut CUmemPoolHandle_st,
    handleType: cudaMemAllocationHandleType,
    flags: u32
) -> cudaError
Expand description

\brief Exports a memory pool to the requested handle type.

Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with ::cudaMemPoolImportFromShareableHandle. Individual pointers can then be shared with the ::cudaMemPoolExportPointer and ::cudaMemPoolImportPointer APIs. The implementation of what the shareable handle is and how it can be transferred is defined by the requested handle type.

\note: To create an IPC capable mempool, create a mempool with a CUmemAllocationHandleType other than cudaMemHandleTypeNone.

\param[out] handle_out - pointer to the location in which to store the requested handle \param[in] pool - pool to export \param[in] handleType - the type of handle to create \param[in] flags - must be 0

\returns ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorOutOfMemory

\sa ::cuMemPoolExportToShareableHandle, ::cudaMemPoolImportFromShareableHandle, ::cudaMemPoolExportPointer, ::cudaMemPoolImportPointer