cubecl_hip_sys

Function hipDeviceGetDefaultMemPool

Source
pub unsafe extern "C" fn hipDeviceGetDefaultMemPool(
    mem_pool: *mut hipMemPool_t,
    device: c_int,
) -> hipError_t
Expand description

@brief Returns the default memory pool of the specified device

@param [out] mem_pool Default memory pool to return @param [in] device Device index for query the default memory pool

@returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, #hipErrorNotSupported

@see hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, 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.