2025-09-16 10:44:36 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2025 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/memory_manager/usm_pool_params.h"
|
|
|
|
|
|
|
|
|
|
#include "shared/source/helpers/constants.h"
|
2025-09-23 13:14:01 +00:00
|
|
|
#include "shared/source/helpers/gfx_core_helper.h"
|
2025-09-16 10:44:36 +00:00
|
|
|
|
|
|
|
|
namespace NEO {
|
2025-09-23 13:14:01 +00:00
|
|
|
UsmPoolParams UsmPoolParams::getUsmPoolParams(const GfxCoreHelper &gfxCoreHelper) {
|
2025-09-16 10:44:36 +00:00
|
|
|
return {
|
2025-09-23 13:14:01 +00:00
|
|
|
.poolSize = UsmPoolParams::getUsmPoolSize(gfxCoreHelper),
|
2025-09-16 10:44:36 +00:00
|
|
|
.minServicedSize = 0u,
|
2025-09-23 13:14:01 +00:00
|
|
|
.maxServicedSize = gfxCoreHelper.isExtendedUsmPoolSizeEnabled() ? 2 * MemoryConstants::megaByte : MemoryConstants::megaByte};
|
2025-09-16 10:44:36 +00:00
|
|
|
}
|
|
|
|
|
} // namespace NEO
|