mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e815da1e4f
commit
bf20ae7ae8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user