Skip to content

Commit 2e4b1d3

Browse files
committed
[SYCL] Fix hang in Lit with Cuda
Signed-off-by: Alexander Flegontov <[email protected]>
1 parent 2870269 commit 2e4b1d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sycl/source/detail/scheduler/scheduler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ EventImplPtr Scheduler::addHostAccessor(Requirement *Req) {
184184
void Scheduler::releaseHostAccessor(Requirement *Req) {
185185
Command *const BlockedCmd = Req->MBlockedCmd;
186186

187-
std::unique_lock<std::shared_timed_mutex> Lock(MGraphLock, std::defer_lock);
188-
lockSharedTimedMutex(Lock);
187+
std::shared_lock<std::shared_timed_mutex> Lock(MGraphLock);
189188

190189
assert(BlockedCmd && "Can't find appropriate command to unblock");
191190

0 commit comments

Comments
 (0)