[PVC] Restore 2MB alignment for SVM_CPU allocations

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2023-01-04 13:49:06 +00:00
committed by Compute-Runtime-Automation
parent db545cd771
commit fca4fbb0c0
7 changed files with 36 additions and 16 deletions

View File

@@ -1,10 +1,12 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "aubstream/product_family.h"
namespace NEO {
@@ -163,6 +165,11 @@ bool ProductHelperHw<gfxProduct>::isBlitCopyRequiredForLocalMemory(const Hardwar
return false;
}
template <>
size_t ProductHelperHw<gfxProduct>::getSvmCpuAlignment() const {
return DebugManager.flags.NEO_CAL_ENABLED.get() ? MemoryConstants::pageSize64k : MemoryConstants::pageSize2Mb;
}
template <>
bool ProductHelperHw<gfxProduct>::isBlitSplitEnqueueWARequired(const HardwareInfo &hwInfo) const {
return true;