Skip to content

[SYCL] Fix unreleased events returned by queue USM API #1979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

sergey-semenov
Copy link
Contributor

The events were created with the interoperability constructor that
performed an unneeded retain.

Signed-off-by: Sergey Semenov [email protected]

The events were created with the interoperability constructor that
performed an unneeeded retain.

Signed-off-by: Sergey Semenov <[email protected]>
@sergey-semenov sergey-semenov requested a review from a team as a code owner June 24, 2020 17:35
Copy link
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

Looks good.

@@ -87,6 +95,7 @@ TEST(QueueWaitTest, USMEventClear) {
Q.memset(HostAlloc, 42, 1);
Q.wait();
ASSERT_EQ(TestContext->NEventsWaitedFor, 1);
ASSERT_EQ(TestContext->EventReferenceCount, 0);
Q.wait();
ASSERT_EQ(TestContext->NEventsWaitedFor, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

The event reference count should be nil after the second call to wait() also, isn't it?

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, I just don't think it's worth checking once it already hits 0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Anyway it would be nice to have it stressed in the test.

@sergey-semenov
Copy link
Contributor Author

sergey-semenov commented Jun 24, 2020

The queue_parallel_for_generic failure should be fixed by #1976, restarted for now

@againull againull merged commit a285b9d into intel:sycl Jun 25, 2020
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