mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9128635311
commit
a479afdbc8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user