fix: configure ISA Pool params based on productHelper

When is2MBLocalMemAlignmentEnabled returns true,
increase pool size for builtins from 64k to 2MB.

Additionally, set appropriate alignment for kernel ISA heap allocations.
Additionally, configure isaAllocationPageSize based on productHelper

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwoliński
2025-02-19 17:03:35 +00:00
committed by Compute-Runtime-Automation
parent e815da1e4f
commit bf20ae7ae8
14 changed files with 230 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -62,7 +62,8 @@ bool KernelInfo::createKernelAllocation(const Device &device, bool internalIsa)
AllocationProperties properties = {device.getRootDeviceIndex(), kernelIsaSize, allocType, device.getDeviceBitfield()};
if (debugManager.flags.AlignLocalMemoryVaTo2MB.get() == 1) {
if (device.getProductHelper().is2MBLocalMemAlignmentEnabled() ||
debugManager.flags.AlignLocalMemoryVaTo2MB.get() == 1) {
properties.alignment = MemoryConstants::pageSize2M;
}