Skip to content

Commit 6578be5

Browse files
[SYCL] fix incorrect setting of Queue->LastCommandEvent (#6015)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent c044d82 commit 6578be5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,12 +3271,6 @@ pi_result piQueueFinish(pi_queue Queue) {
32713271
if (ZeQueue)
32723272
ZE_CALL(zeHostSynchronize, (ZeQueue));
32733273
}
3274-
3275-
// Lock automatically releases when this goes out of scope.
3276-
std::scoped_lock lock(Queue->Mutex);
3277-
// Prevent unneeded already finished events to show up in the wait list.
3278-
Queue->LastCommandEvent = nullptr;
3279-
32803274
return PI_SUCCESS;
32813275
}
32823276

0 commit comments

Comments
 (0)