mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9ce3713ace
commit
fc1d93af8e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user