Function rcudnn::cudaMemPoolImportFromShareableHandle[][src]

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

\brief imports a memory pool from a shared handle.

Specific allocations can be imported from the imported pool with ::cudaMemPoolImportPointer.

\note Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in ::cudaDeviceSetMemPool or ::cudaMallocFromPoolAsync calls.

\param[out] pool_out - Returned memory pool \param[in] handle - OS handle of the pool to open \param[in] handleType - The type of handle being imported \param[in] flags - must be 0

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

\sa ::cuMemPoolImportFromShareableHandle, ::cudaMemPoolExportToShareableHandle, ::cudaMemPoolExportPointer, ::cudaMemPoolImportPointer