performance: device usm sets localOnlyRequired

Device USM allocations should not be allowed to migrate to host memory

Related-To: NEO-11843

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-07-19 14:59:54 +00:00
committed by Compute-Runtime-Automation
parent 9128635311
commit a479afdbc8
4 changed files with 27 additions and 2 deletions

View File

@@ -601,7 +601,9 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
case AllocationType::buffer:
case AllocationType::svmGpu:
case AllocationType::image:
if (false == allocationData.flags.uncacheable && useLocalPreferredForCacheableBuffers) {
if (false == allocationData.flags.uncacheable &&
useLocalPreferredForCacheableBuffers &&
false == allocationData.flags.isUSMDeviceMemory) {
if (!allocationData.flags.preferCompressed) {
allocationData.storageInfo.localOnlyRequired = false;
}