pub unsafe extern "C" fn cuMemPoolImportPointer(
ptr_out: *mut CUdeviceptr,
pool: CUmemoryPool,
shareData: *mut CUmemPoolPtrExportData,
) -> CUresult
Expand description
\brief Import a memory pool allocation from another process.
Returns in \p ptr_out a pointer to the imported memory. The imported memory must not be accessed before the allocation operation completes in the exporting process. The imported memory must be freed from all importing processes before being freed in the exporting process. The pointer may be freed with cuMemFree or cuMemFreeAsync. If cuMemFreeAsync is used, the free must be completed on the importing process before the free operation on the exporting process.
\note The cuMemFreeAsync api may be used in the exporting process before the cuMemFreeAsync operation completes in its stream as long as the cuMemFreeAsync in the exporting process specifies a stream with a stream dependency on the importing process’s cuMemFreeAsync.
\param[out] ptr_out - pointer to imported memory \param[in] pool - pool from which to import \param[in] shareData - data specifying the memory to import
\returns ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_OUT_OF_MEMORY
\sa ::cuMemPoolExportToShareableHandle, ::cuMemPoolImportFromShareableHandle, ::cuMemPoolExportPointer