refactor: use designated initializers for SmallBuffersParams initialization

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwoliński
2025-02-11 16:36:49 +00:00
committed by Compute-Runtime-Automation
parent 4cb53461ed
commit 1d8c8ac843
2 changed files with 20 additions and 25 deletions

View File

@@ -31,20 +31,18 @@ struct SmallBuffersParams {
static SmallBuffersParams getDefaultParams() {
return {
2 * MemoryConstants::megaByte, // aggregatedSmallBuffersPoolSize
1 * MemoryConstants::megaByte, // smallBufferThreshold
MemoryConstants::pageSize64k, // chunkAlignment
MemoryConstants::pageSize64k // startingOffset
};
.aggregatedSmallBuffersPoolSize = 2 * MemoryConstants::megaByte,
.smallBufferThreshold = 1 * MemoryConstants::megaByte,
.chunkAlignment = MemoryConstants::pageSize64k,
.startingOffset = MemoryConstants::pageSize64k};
}
static SmallBuffersParams getLargePagesParams() {
return {
16 * MemoryConstants::megaByte, // aggregatedSmallBuffersPoolSize
2 * MemoryConstants::megaByte, // smallBufferThreshold
MemoryConstants::pageSize64k, // chunkAlignment
MemoryConstants::pageSize64k // startingOffset
};
.aggregatedSmallBuffersPoolSize = 16 * MemoryConstants::megaByte,
.smallBufferThreshold = 2 * MemoryConstants::megaByte,
.chunkAlignment = MemoryConstants::pageSize64k,
.startingOffset = MemoryConstants::pageSize64k};
}
static inline SmallBuffersParams getPreferredBufferPoolParams(const ProductHelper &productHelper);