Files
compute-runtime/shared/test/common/mocks/mock_pool_info.cpp
Aleksander Czerwionka cfbbe04e32 refactor: decrease UsmMemAllocPoolsManager pool sizes in unit tests
Related-To: NEO-16082

Might fix NEO-16307

Signed-off-by: Aleksander Czerwionka <aleksander.czerwionka@intel.com>
2025-10-16 11:48:04 +02:00

24 lines
670 B
C++

/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/constants.h"
#include "shared/source/memory_manager/pool_info.h"
namespace NEO {
static constexpr uint64_t KB = MemoryConstants::kiloByte; // NOLINT(readability-identifier-naming)
// clang-format off
const std::array<const PoolInfo, 3> PoolInfo::poolInfos = {
PoolInfo{ 0, 256, 2 * KB},
PoolInfo{ 256 + 1, 1 * KB, 8 * KB},
PoolInfo{1 * KB + 1, MemoryConstants::pageSize, 2 * MemoryConstants::pageSize }};
// clang-format on
size_t PoolInfo::getMaxPoolableSize() {
return MemoryConstants::pageSize;
}
} // namespace NEO