performance: prealloc internal heap on mtl

Preallocate 1 internal heap allocation per csr on mtl

Related-To: NEO-8152

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2023-11-17 12:14:15 +00:00
committed by Compute-Runtime-Automation
parent 9a3fea9849
commit 6562828095
9 changed files with 65 additions and 6 deletions

View File

@@ -798,6 +798,14 @@ uint32_t ProductHelperHw<gfxProduct>::getCommandBuffersPreallocatedPerCommandQue
return 0u;
}
template <PRODUCT_FAMILY gfxProduct>
uint32_t ProductHelperHw<gfxProduct>::getInternalHeapsPreallocated() const {
if (DebugManager.flags.SetAmountOfInternalHeapsToPreallocate.get() != -1) {
return DebugManager.flags.SetAmountOfInternalHeapsToPreallocate.get();
}
return 0u;
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::disableL3CacheForDebug(const HardwareInfo &) const {
return false;