Skip to content

Commit 6b61562

Browse files
fix deadlock in UR L0 adapter
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 1851e28 commit 6b61562

File tree

1 file changed

+1
-1
lines changed
  • unified-runtime/source/adapters/level_zero

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/level_zero/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ ur_result_t ur_queue_handle_t_::resetCommandList(
20402040
// If events in the queue are discarded then we can't check their status.
20412041
// Helper for checking of event completion
20422042
auto EventCompleted = [](ur_event_handle_t Event) -> bool {
2043-
std::scoped_lock<ur_shared_mutex> EventLock(Event->Mutex);
2043+
std::shared_lock<ur_shared_mutex> EventLock(Event->Mutex);
20442044
ze_result_t ZeResult =
20452045
Event->Completed
20462046
? ZE_RESULT_SUCCESS

0 commit comments

Comments
 (0)