Skip to content

Commit 9016772

Browse files
No dynamic allocations on hot calls [2/n]
- Prevent FULL vector copy. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
1 parent b45ffdb commit 9016772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

level_zero/core/source/cmdqueue/cmdqueue_hw.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
368368

369369
for (auto i = 0u; i < numCommandLists; ++i) {
370370
auto commandList = CommandList::fromHandle(phCommandLists[i]);
371-
auto cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations();
371+
auto &cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations();
372372
auto cmdBufferCount = cmdBufferAllocations.size();
373373

374374
auto commandListPreemption = commandList->getCommandListPreemptionMode();

0 commit comments

Comments
 (0)