Files
compute-runtime/opencl/source/context/pool_buffer_additional_checks.cpp
Dominik Dabek 6e434e0424 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>
2024-01-24 10:55:29 +01:00

16 lines
432 B
C++

/*
* Copyright (C) 2022-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/context/context.h"
namespace NEO {
bool Context::BufferPoolAllocator::flagsAllowBufferFromPool(const cl_mem_flags &flags, const cl_mem_flags_intel &flagsIntel) const {
return (flagsIntel & CL_MEM_COMPRESSED_HINT_INTEL) == false &&
(flags & CL_MEM_COMPRESSED_HINT_INTEL) == false;
}
} // namespace NEO