hipMemPoolExportPointer

Function hipMemPoolExportPointer 

Source
pub unsafe extern "C" fn hipMemPoolExportPointer(
    export_data: *mut hipMemPoolPtrExportData,
    dev_ptr: *mut c_void,
) -> hipError_t
Expand description

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

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

@param[out] export_data Returned export data @param[in] dev_ptr Pointer to memory being exported

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory

@see hipMemPoolImportPointer

@warning This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

@note This API is implemented on Linux and is under development on Microsoft Windows.