Function hip_sys::hiprt::hipMemPoolImportFromShareableHandle
source · pub unsafe extern "C" fn hipMemPoolImportFromShareableHandle(
mem_pool: *mut *mut ihipMemPoolHandle_t,
shared_handle: *mut c_void,
handle_type: hipMemAllocationHandleType,
flags: u32
) -> hipError_tExpand 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.