mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: rename pageSize2Mb to pageSize2M
The previous name "pageSize2Mb" defined in shared/source/helpers/constant.h is inconsistent to other variable, i.e. pageSize64k. Furthermore, it's a bit misleading because the page size is defined in Megabytes (MB), not in Megabits (Mb). Related-to: NEO-7695 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f24ac10986
commit
81822e3716
@@ -62,7 +62,7 @@ WddmMemoryManager::WddmMemoryManager(ExecutionEnvironment &executionEnvironment)
|
||||
alignmentSelector.addCandidateAlignment(MemoryConstants::pageSize64k, true, AlignmentSelector::anyWastage);
|
||||
if (DebugManager.flags.AlignLocalMemoryVaTo2MB.get() != 0) {
|
||||
constexpr static float maxWastage2Mb = 0.1f;
|
||||
alignmentSelector.addCandidateAlignment(MemoryConstants::pageSize2Mb, false, maxWastage2Mb);
|
||||
alignmentSelector.addCandidateAlignment(MemoryConstants::pageSize2M, false, maxWastage2Mb);
|
||||
}
|
||||
const size_t customAlignment = static_cast<size_t>(DebugManager.flags.ExperimentalEnableCustomLocalMemoryAlignment.get());
|
||||
if (customAlignment > 0) {
|
||||
|
||||
Reference in New Issue
Block a user