Skip to content

Commit 59161fb

Browse files
[SYCL][Graph] Bugfix missing SyncPoint in copy events (#11691)
Adds missing instructions for storing SyncPoint in events returned by enqueuing copy commands to a command-buffer.
1 parent e696051 commit 59161fb

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
@@ -2736,7 +2736,7 @@ pi_int32 ExecCGCommand::enqueueImpCommandBuffer() {
27362736
Req->MDims, Req->MAccessRange,
27372737
/*DstOffset=*/{0, 0, 0}, Req->MElemSize, std::move(MSyncPointDeps),
27382738
&OutSyncPoint);
2739-
2739+
MEvent->setSyncPoint(OutSyncPoint);
27402740
return PI_SUCCESS;
27412741
}
27422742
case CG::CGTYPE::CopyPtrToAcc: {
@@ -2750,7 +2750,7 @@ pi_int32 ExecCGCommand::enqueueImpCommandBuffer() {
27502750
/*SrcOffset*/ {0, 0, 0}, Req->MElemSize, AllocaCmd->getMemAllocation(),
27512751
Req->MDims, Req->MMemoryRange, Req->MAccessRange, Req->MOffset,
27522752
Req->MElemSize, std::move(MSyncPointDeps), &OutSyncPoint);
2753-
2753+
MEvent->setSyncPoint(OutSyncPoint);
27542754
return PI_SUCCESS;
27552755
}
27562756
default:

0 commit comments

Comments
 (0)