feature: set device allocation chunking as default

Device allocation chunking only applies for multi-tile mode for implicit scaling

Related-To: NEO-9051

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-11-03 15:46:58 +00:00
committed by Compute-Runtime-Automation
parent 81e5e2de87
commit f0175b3916
6 changed files with 38 additions and 8 deletions

View File

@@ -1157,7 +1157,11 @@ bool Drm::isChunkingAvailable() {
int ret = ioctlHelper->isChunkingAvailable();
if (ret) {
chunkingAvailable = true;
chunkingMode = DebugManager.flags.EnableBOChunking.get();
if (DebugManager.flags.EnableBOChunking.get() == -1) {
chunkingMode = chunkingModeDevice;
} else {
chunkingMode = DebugManager.flags.EnableBOChunking.get();
}
}
if (DebugManager.flags.MinimalAllocationSizeForChunking.get() != -1) {
@@ -1167,8 +1171,8 @@ bool Drm::isChunkingAvailable() {
printDebugString(DebugManager.flags.PrintBOChunkingLogs.get(), stdout,
"Chunking available: %d; enabled for: shared allocations %d, device allocations %d; minimalChunkingSize: %zd\n",
chunkingAvailable,
(chunkingMode & 0x01),
(chunkingMode & 0x02),
(chunkingMode & chunkingModeShared),
(chunkingMode & chunkingModeDevice),
minimalChunkingSize);
});
}