mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix(ocl): track buffer pool count per device
Track amount of created buffer pools per device. Do not allocate extra pools if limit is reached. New contexts will have pooling disabled if limit is reached on device. Related-To: NEO-13461 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b6fc2b5861
commit
e61d04a881
@@ -84,6 +84,7 @@ class AbstractBuffersAllocator : public SmallBuffersParams<BuffersPoolType> {
|
||||
void releasePools() { this->bufferPools.clear(); }
|
||||
bool isPoolBuffer(const BufferParentType *buffer) const;
|
||||
void tryFreeFromPoolBuffer(BufferParentType *possiblePoolBuffer, size_t offset, size_t size);
|
||||
uint32_t getPoolsCount() { return static_cast<uint32_t>(this->bufferPools.size()); }
|
||||
|
||||
protected:
|
||||
inline bool isSizeWithinThreshold(size_t size) const { return smallBufferThreshold >= size; }
|
||||
|
||||
Reference in New Issue
Block a user