Skip to content

Commit 4797df6

Browse files
fix update buffer commands check
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent bb2565a commit 4797df6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3664,6 +3664,10 @@ UpdateCommandBufferCommand::UpdateCommandBufferCommand(
36643664
: Command(CommandType::UPDATE_CMD_BUFFER, Queue), MGraph(Graph),
36653665
MNodes(Nodes) {}
36663666

3667+
bool UpdateCommandBufferCommand::producesPiEvent() const {
3668+
return !MPreparedDepsEvents.empty();
3669+
}
3670+
36673671
ur_result_t UpdateCommandBufferCommand::enqueueImp() {
36683672
waitForPreparedHostEvents();
36693673
std::vector<EventImplPtr> EventImpls = MPreparedDepsEvents;

sycl/source/detail/scheduler/commands.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ class UpdateCommandBufferCommand : public Command {
719719

720720
void printDot(std::ostream &Stream) const final;
721721
void emitInstrumentationData() final;
722+
bool producesPiEvent() const final;
722723

723724
private:
724725
ur_result_t enqueueImp() final;

0 commit comments

Comments
 (0)