mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "performance: increase cl buffer pool size"
This reverts commit 6e67271454.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7c96076d5e
commit
681eac2f13
@@ -615,7 +615,7 @@ void ClDevice::initializeMaxPoolCount() {
|
||||
auto &device = getDevice();
|
||||
const auto bitfield = device.getDeviceBitfield();
|
||||
const auto deviceMemory = device.getGlobalMemorySize(static_cast<uint32_t>(bitfield.to_ulong()));
|
||||
const auto preferredBufferPoolParams = SmallBuffersParams::getDefaultParams();
|
||||
const auto preferredBufferPoolParams = SmallBuffersParams::getPreferredBufferPoolParams(device.getProductHelper());
|
||||
const auto maxPoolCount = Context::BufferPoolAllocator::calculateMaxPoolCount(preferredBufferPoolParams, deviceMemory, 2);
|
||||
device.updateMaxPoolCount(maxPoolCount);
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ bool Context::createImpl(const cl_context_properties *properties,
|
||||
setupContextType();
|
||||
initializeManagers();
|
||||
|
||||
smallBufferPoolAllocator.setParams(SmallBuffersParams::getDefaultParams());
|
||||
smallBufferPoolAllocator.setParams(SmallBuffersParams::getPreferredBufferPoolParams(device->getProductHelper()));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -553,7 +553,7 @@ bool Context::BufferPoolAllocator::isAggregatedSmallBuffersEnabled(Context *cont
|
||||
|
||||
Context::BufferPool::BufferPool(Context *context) : BaseType(context->memoryManager,
|
||||
nullptr,
|
||||
SmallBuffersParams::getDefaultParams()) {
|
||||
SmallBuffersParams::getPreferredBufferPoolParams(context->getDevice(0)->getDevice().getProductHelper())) {
|
||||
static constexpr cl_mem_flags flags = CL_MEM_UNCOMPRESSED_HINT_INTEL;
|
||||
[[maybe_unused]] cl_int errcodeRet{};
|
||||
Buffer::AdditionalBufferCreateArgs bufferCreateArgs{};
|
||||
|
||||
Reference in New Issue
Block a user