File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sycl/plugins/unified_runtime/ur/adapters/level_zero Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueEventsWaitWithBarrier(
271
271
if (Queue->Device ->ImmCommandListUsed ) {
272
272
// If immediate command lists are being used, each will act as their own
273
273
// queue, so we must insert a barrier into each.
274
- for (auto ImmCmdList : QueueGroup.second .ImmCmdLists )
274
+ for (auto & ImmCmdList : QueueGroup.second .ImmCmdLists )
275
275
if (ImmCmdList != Queue->CommandListMap .end ())
276
276
CmdLists.push_back (ImmCmdList);
277
277
} else {
Original file line number Diff line number Diff line change @@ -1390,7 +1390,7 @@ ur_result_t ur_queue_handle_t_::synchronize() {
1390
1390
for (auto &QueueMap : {ComputeQueueGroupsByTID, CopyQueueGroupsByTID}) {
1391
1391
for (auto &QueueGroup : QueueMap) {
1392
1392
if (Device->ImmCommandListUsed ) {
1393
- for (auto ImmCmdList : QueueGroup.second .ImmCmdLists ) {
1393
+ for (auto & ImmCmdList : QueueGroup.second .ImmCmdLists ) {
1394
1394
if (ImmCmdList == this ->CommandListMap .end ())
1395
1395
continue ;
1396
1396
// Cleanup all events from the synced command list.
@@ -1406,7 +1406,7 @@ ur_result_t ur_queue_handle_t_::synchronize() {
1406
1406
for (auto &QueueMap : {ComputeQueueGroupsByTID, CopyQueueGroupsByTID}) {
1407
1407
for (auto &QueueGroup : QueueMap) {
1408
1408
if (Device->ImmCommandListUsed ) {
1409
- for (auto ImmCmdList : QueueGroup.second .ImmCmdLists )
1409
+ for (auto & ImmCmdList : QueueGroup.second .ImmCmdLists )
1410
1410
syncImmCmdList (this , ImmCmdList);
1411
1411
} else {
1412
1412
for (auto &ZeQueue : QueueGroup.second .ZeQueues )
You can’t perform that action at this time.
0 commit comments