Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/source/detail/scheduler/graph_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Scheduler::GraphProcessor::getWaitList(EventImplPtr Event) {

void Scheduler::GraphProcessor::waitForEvent(EventImplPtr Event) {
Command *Cmd = getCommand(Event);
assert(!Cmd && "Event has no associated command?");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify in the commit message the reason why this assertion is erroneous, please?
Test case would be great too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems there is just a typo in assert condition:
Should be: assert(Cmd && "Event has no associated command?");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, fixed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it doesn't make sense to write test on this because the problems reproduces on any test which submits commands with asserts enabled.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it doesn't make sense to write test on this because the problems reproduces on any test which submits commands with asserts enabled.

Are you trying to say that this code is already covered by existing LIT tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you trying to say that this code is already covered by existing LIT tests?

Yes, this assertion leads to about 30 LIT test failures in debug mode without this patch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When asserts are enabled*

assert(Cmd && "Event has no associated command?");
Command *FailedCommand = enqueueCommand(Cmd);
if (FailedCommand)
// TODO: Reschedule commands.
Expand Down