pub unsafe extern "C" fn cuMemPoolImportFromShareableHandle(
pool_out: *mut CUmemoryPool,
handle: *mut c_void,
handleType: CUmemAllocationHandleType,
flags: c_ulonglong,
) -> CUresult
Expand description
\brief imports a memory pool from a shared handle.
Specific allocations can be imported from the imported pool with cuMemPoolImportPointer.
If \p handleType is ::CU_MEM_HANDLE_TYPE_FABRIC and the importer process has not been granted access to the same IMEX channel as the exporter process, this API will error as ::CUDA_ERROR_NOT_PERMITTED.
\note Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in cuDeviceSetMemPool or ::cuMemAllocFromPoolAsync 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 ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_OUT_OF_MEMORY
\sa ::cuMemPoolExportToShareableHandle, ::cuMemPoolExportPointer, ::cuMemPoolImportPointer