mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
[5/n] Optimize Indirect Allocations.
Enable mechanism where feasible. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f17dfc9a5c
commit
3d9548cee9
@@ -171,7 +171,12 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||
bool indirectAllocationsAllowed = commandList->hasIndirectAllocationsAllowed();
|
||||
if (indirectAllocationsAllowed) {
|
||||
auto svmAllocsManager = device->getDriverHandle()->getSvmAllocsManager();
|
||||
if (NEO::DebugManager.flags.MakeIndirectAllocationsResidentAsPack.get() == 1) {
|
||||
auto submitAsPack = device->getDriverHandle()->getMemoryManager()->allowIndirectAllocationsAsPack(neoDevice->getRootDeviceIndex());
|
||||
if (NEO::DebugManager.flags.MakeIndirectAllocationsResidentAsPack.get() != -1) {
|
||||
submitAsPack = !!NEO::DebugManager.flags.MakeIndirectAllocationsResidentAsPack.get();
|
||||
}
|
||||
|
||||
if (submitAsPack) {
|
||||
svmAllocsManager->makeIndirectAllocationsResident(*csr, csr->peekTaskCount() + 1u);
|
||||
} else {
|
||||
UnifiedMemoryControls unifiedMemoryControls = commandList->getUnifiedMemoryControls();
|
||||
|
||||
Reference in New Issue
Block a user