cubecl_hip_sys

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, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

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