pub unsafe extern "C" fn cudaMemPoolImportPointer(
ptr: *mut *mut c_void,
memPool: cudaMemPool_t,
exportData: *mut cudaMemPoolPtrExportData,
) -> cudaError_tExpand description
Import a memory pool allocation from another process.
Returns in 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 cudaFree or cudaFreeAsync. If cudaFreeAsync is used, the free must be completed on the importing process before the free operation on the exporting process.
Note: The cudaFreeAsync api may be used in the exporting process before the cudaFreeAsync operation completes in its stream as long as the cudaFreeAsync in the exporting process specifies a stream with a stream dependency on the importing process’s cudaFreeAsync.
§Return value
CUDA_SUCCESS, cudaError_enum::CUDA_ERROR_INVALID_VALUE, cudaError_enum::CUDA_ERROR_NOT_INITIALIZED, cudaError_enum::CUDA_ERROR_OUT_OF_MEMORY.
See also: cuMemPoolImportPointer, cudaMemPoolExportToShareableHandle, cudaMemPoolImportFromShareableHandle, cudaMemPoolExportPointer.