Function rcudnn_sys::cudaMemPoolExportPointer[][src]

pub unsafe extern "C" fn cudaMemPoolExportPointer(
    exportData: *mut cudaMemPoolPtrExportData,
    ptr: *mut c_void
) -> cudaError_t
Expand description

\brief Export data to share a memory pool allocation between processes.

Constructs \p shareData_out for sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with the ::cudaMemPoolImportPointer api. The data is not a handle and may be shared through any IPC mechanism.

\param[out] shareData_out - Returned export data \param[in] ptr - pointer to memory being exported

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

\sa ::cuMemPoolExportPointer, ::cudaMemPoolExportToShareableHandle, ::cudaMemPoolImportFromShareableHandle, ::cudaMemPoolImportPointer