fix: Use system ptr for 32 bit svm cpu

Resolves: HSD-14025543711

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-11-17 13:47:19 +00:00
committed by Compute-Runtime-Automation
parent 09981f7102
commit 0ec6f51e0e
2 changed files with 15 additions and 2 deletions

View File

@@ -29,6 +29,11 @@ std::optional<aub_stream::ProductFamily> ProductHelperHw<gfxProduct>::getAubStre
template <>
std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferredAllocationMethod(AllocationType allocationType) const {
if constexpr (is32bit) {
if (allocationType == AllocationType::svmCpu) { // no heap SVM in allocateByKmd on 32 bit
return GfxMemoryAllocationMethod::useUmdSystemPtr;
}
}
return GfxMemoryAllocationMethod::allocateByKmd;
}