mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8eb3fe222e
commit
2166f7cbcc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user