performance(ocl): set pool allocator threshold 1MB

Increase pool allocator threshold to 1MB
Remove stack allocations based on threshold in tests.

Related-To: NEO-9690

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2023-12-06 17:10:58 +00:00
committed by Compute-Runtime-Automation
parent 9ce3713ace
commit fc1d93af8e
5 changed files with 13 additions and 12 deletions

View File

@@ -541,6 +541,7 @@ Buffer *Context::BufferPool::allocate(const MemoryProperties &memoryProperties,
return nullptr;
}
bufferRegion.origin -= BufferPool::startingOffset;
DEBUG_BREAK_IF(bufferRegion.origin >= BufferPool::aggregatedSmallBuffersPoolSize);
bufferRegion.size = requestedSize;
auto bufferFromPool = this->mainStorage->createSubBuffer(flags, flagsIntel, &bufferRegion, errcodeRet);
bufferFromPool->createFunction = this->mainStorage->createFunction;