Skip to content

Commit 803a2f5

Browse files
draft fix
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 9a29376 commit 803a2f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,8 @@ bool AllocaCommand::producesPiEvent() const {
10941094
// for reference see enqueueImp()
10951095
auto TypedSyclMemObj = static_cast<detail::SYCLMemObjT *>(getSYCLMemObj());
10961096
// Event presence implies interop context esistence
1097-
return TypedSyclMemObj->hasInteropEvent() && !MIsLeaderAlloca &&
1098-
(MLinkedAllocaCmd->getMemAllocation() != nullptr);
1097+
return (TypedSyclMemObj->hasInteropEvent() &&
1098+
(getContext(MQueue) == TypedSyclMemObj->getInteropContext()));
10991099
}
11001100

11011101
ur_result_t AllocaCommand::enqueueImp() {

0 commit comments

Comments
 (0)