Skip to content

Conversation

sergey-semenov
Copy link
Contributor

Signed-off-by: Sergey Semenov sergey.semenov@intel.com

Signed-off-by: Sergey Semenov <sergey.semenov@intel.com>
@@ -32,7 +32,6 @@ 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*

@sergey-semenov sergey-semenov changed the title [SYCL] Remove erroneous assertion from graph processor [SYCL] Fix an assertion in graph processor May 14, 2019
@romanovvlad romanovvlad merged commit 4331903 into intel:sycl May 16, 2019
@sergey-semenov sergey-semenov deleted the assertfix branch June 24, 2019 14:17
coldav pushed a commit to coldav/llvm that referenced this pull request Aug 22, 2025
[vecz] Fix alignment of load operations
coldav pushed a commit to coldav/llvm that referenced this pull request Aug 26, 2025
[vecz] Fix alignment of load operations
coldav pushed a commit to coldav/llvm that referenced this pull request Aug 29, 2025
[vecz] Fix alignment of load operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants