We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a29376 commit 803a2f5Copy full SHA for 803a2f5
sycl/source/detail/scheduler/commands.cpp
@@ -1094,8 +1094,8 @@ bool AllocaCommand::producesPiEvent() const {
1094
// for reference see enqueueImp()
1095
auto TypedSyclMemObj = static_cast<detail::SYCLMemObjT *>(getSYCLMemObj());
1096
// Event presence implies interop context esistence
1097
- return TypedSyclMemObj->hasInteropEvent() && !MIsLeaderAlloca &&
1098
- (MLinkedAllocaCmd->getMemAllocation() != nullptr);
+ return (TypedSyclMemObj->hasInteropEvent() &&
+ (getContext(MQueue) == TypedSyclMemObj->getInteropContext()));
1099
}
1100
1101
ur_result_t AllocaCommand::enqueueImp() {
0 commit comments