fix: reduce USM pool size for platforms prior Xe2

Related-To: NEO-16192

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-09-23 13:14:01 +00:00
committed by Compute-Runtime-Automation
parent 452475a0b9
commit 797807bea8
15 changed files with 50 additions and 19 deletions

View File

@@ -6,10 +6,11 @@
*/
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/memory_manager/usm_pool_params.h"
namespace NEO {
size_t UsmPoolParams::getUsmPoolSize() {
return 32 * MemoryConstants::megaByte;
size_t UsmPoolParams::getUsmPoolSize(const GfxCoreHelper &gfxCoreHelper) {
return gfxCoreHelper.isExtendedUsmPoolSizeEnabled() ? 32 * MemoryConstants::megaByte : 2 * MemoryConstants::megaByte;
}
} // namespace NEO