fix: add checks to avoid invalid behavior

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-05 14:42:21 +00:00
committed by Compute-Runtime-Automation
parent 0c8a514349
commit ece03e6bbf
3 changed files with 7 additions and 2 deletions

View File

@@ -200,6 +200,7 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
}
}
if (DebugManager.flags.ForceSingleTileAllocPlacement.get()) {
UNRECOVERABLE_IF(properties.allocationType == AllocationType::UNKNOWN);
if ((1llu << (static_cast<int64_t>(properties.allocationType) - 1)) & DebugManager.flags.ForceSingleTileAllocPlacement.get()) {
storageInfo.cloningOfPageTables = true;
storageInfo.memoryBanks = preferredTile;