mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
[2/n] Optimize indirect calls.
Migrate shared allocation when command list sets indirect flags. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3d9e1ea3a5
commit
a12f9cb377
@@ -160,6 +160,10 @@ void CommandList::migrateSharedAllocations() {
|
||||
for (auto alloc : driverHandleImp->sharedMakeResidentAllocations) {
|
||||
pageFaultManager->moveAllocationToGpuDomain(reinterpret_cast<void *>(alloc.second->getGpuAddress()));
|
||||
}
|
||||
if (this->unifiedMemoryControls.indirectSharedAllocationsAllowed) {
|
||||
auto pageFaultManager = device->getDriverHandle()->getMemoryManager()->getPageFaultManager();
|
||||
pageFaultManager->moveAllocationsWithinUMAllocsManagerToGpuDomain(this->device->getDriverHandle()->getSvmAllocsManager());
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user