fix: Disable 1-tile chunking dev mem

Disable chunking for device memory allocation if only 1Tile

Related-To: NEO-8098

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-08-31 06:14:14 +00:00
committed by Compute-Runtime-Automation
parent 8eb3fe222e
commit 2166f7cbcc
2 changed files with 30 additions and 2 deletions

View File

@@ -1881,9 +1881,11 @@ bool DrmMemoryManager::createDrmAllocation(Drm *drm, DrmAllocation *allocation,
uint32_t numOfChunks = DebugManager.flags.NumberOfBOChunks.get();
size_t chunkingSize = boTotalChunkSize / numOfChunks;
// Dont chunk for sizes less than chunkThreshold
// Do not chunk for sizes less than chunkThreshold
// Do not chunk for single tile device memory
if (boTotalChunkSize >= drm->getMinimalSizeForChunking() &&
!(chunkingSize & (MemoryConstants::chunkThreshold - 1))) {
!(chunkingSize & (MemoryConstants::chunkThreshold - 1)) &&
(allocation->storageInfo.subDeviceBitfield.count() > 1)) {
handles = 1;
allocation->resizeBufferObjects(handles);