cubecl_hip_sys

Function hipMemPoolImportFromShareableHandle

Source
pub unsafe extern "C" fn hipMemPoolImportFromShareableHandle(
    mem_pool: *mut hipMemPool_t,
    shared_handle: *mut c_void,
    handle_type: hipMemAllocationHandleType,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Imports a memory pool from a shared handle.

Specific allocations can be imported from the imported pool with @p hipMemPoolImportPointer.

@note Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in @p hipDeviceSetMemPool or @p hipMallocFromPoolAsync calls.

@param [out] mem_pool Returned memory pool @param [in] shared_handle OS handle of the pool to open @param [in] handle_type The type of handle being imported @param [in] flags Must be 0

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory

@see hipMemPoolExportToShareableHandle

@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.