mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4cb53461ed
commit
1d8c8ac843
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user