performance(ocl): increase buffer pool size

increase pool size to 2MB and threshold to 1MB
add limit to the number of pools, set to 2

Related-To: NEO-9690

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2023-12-21 15:44:11 +00:00
committed by Compute-Runtime-Automation
parent 2d15517fbe
commit 6e434e0424
6 changed files with 72 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Intel Corporation
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -214,9 +214,9 @@ bool inline copyHostPointer(Buffer *buffer,
copyOnCpuAllowed = debugManager.flags.CopyHostPtrOnCpu.get() == 1;
}
if (auto lockedPointer = copyOnCpuAllowed ? device.getMemoryManager()->lockResource(memory) : nullptr) {
memcpy_s(ptrOffset(lockedPointer, buffer->getOffset()), size, hostPtr, size);
memory->setAubWritable(true, GraphicsAllocation::defaultBank);
memory->setTbxWritable(true, GraphicsAllocation::defaultBank);
memcpy_s(ptrOffset(lockedPointer, buffer->getOffset()), size, hostPtr, size);
return true;
} else {
auto blitMemoryToAllocationResult = BlitOperationResult::unsupported;