Skip to content

Commit 3e6d321

Browse files
Adds missing instructions for storing SyncPoint in events returned by enqueuing commands to a command-buffer.
1 parent bd096bb commit 3e6d321

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
@@ -2778,7 +2778,7 @@ pi_int32 ExecCGCommand::enqueueImpCommandBuffer() {
27782778
AllocaCmd->getMemAllocation(), Fill->MPattern.size(),
27792779
Fill->MPattern.data(), Req->MDims, Req->MMemoryRange, Req->MAccessRange,
27802780
Req->MOffset, Req->MElemSize, std::move(MSyncPointDeps), &OutSyncPoint);
2781-
2781+
MEvent->setSyncPoint(OutSyncPoint);
27822782
return PI_SUCCESS;
27832783
}
27842784
case CG::CGTYPE::FillUSM: {
@@ -2787,7 +2787,7 @@ pi_int32 ExecCGCommand::enqueueImpCommandBuffer() {
27872787
MQueue->getContextImplPtr(), MCommandBuffer, Fill->getDst(),
27882788
Fill->getLength(), Fill->getFill(), std::move(MSyncPointDeps),
27892789
&OutSyncPoint);
2790-
2790+
MEvent->setSyncPoint(OutSyncPoint);
27912791
return PI_SUCCESS;
27922792
}
27932793
default:

0 commit comments

Comments
 (0)