mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
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>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a05ce05af6
commit
cfbbe04e32
@@ -20,6 +20,7 @@ set(NEO_SHARED_DLLS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/options_dll.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/get_staging_buffer_size.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/usm_pool_size.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pool_info.cpp
|
||||
)
|
||||
|
||||
add_library(neo_shared_dlls_precompiled_objects OBJECT ${NEO_SHARED_DLLS})
|
||||
|
||||
26
shared/source/dll/pool_info.cpp
Normal file
26
shared/source/dll/pool_info.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/memory_manager/pool_info.h"
|
||||
|
||||
#include "shared/source/helpers/constants.h"
|
||||
|
||||
namespace NEO {
|
||||
static constexpr uint64_t KB = MemoryConstants::kiloByte; // NOLINT(readability-identifier-naming)
|
||||
static constexpr uint64_t MB = MemoryConstants::megaByte; // NOLINT(readability-identifier-naming)
|
||||
// clang-format off
|
||||
const std::array<const PoolInfo, 3> PoolInfo::poolInfos = {
|
||||
PoolInfo{ 0, 4 * KB, 2 * MB},
|
||||
PoolInfo{ 4 * KB+1, 64 * KB, 2 * MB},
|
||||
PoolInfo{64 * KB+1, 2 * MB, 16 * MB}};
|
||||
// clang-format on
|
||||
|
||||
size_t PoolInfo::getMaxPoolableSize() {
|
||||
return 2 * MB;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user