cubecl_hip_sys

Function hipMemPoolCreate

Source
pub unsafe extern "C" fn hipMemPoolCreate(
    mem_pool: *mut hipMemPool_t,
    pool_props: *const hipMemPoolProps,
) -> hipError_t
Expand description

@brief Creates a memory pool

Creates a HIP memory pool and returns the handle in @p mem_pool. The @p pool_props determines the properties of the pool such as the backing device and IPC capabilities.

By default, the memory pool will be accessible from the device it is allocated on.

@param [out] mem_pool Contains createed memory pool @param [in] pool_props Memory pool properties

@note Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported

@see hipMallocFromPoolAsync, hipMallocAsync, hipFreeAsync, hipMemPoolGetAttribute, hipMemPoolDestroy, hipMemPoolTrimTo, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess

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