Skip to content

[SYCL] Wait for stream service tasks #7130

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 10 commits into from
Nov 3, 2022

Conversation

romanovvlad
Copy link
Contributor

@romanovvlad romanovvlad commented Oct 20, 2022

Before the patch explicit waiting for the task which is expected to
print a message using sycl::stream doesn't guarantee that the message is
actually printed(the printing may happen later).
The patch adds such a guarantee by registering events of stream service
tasks in the user event produced for the original user task as well as
in the queue where this task is submitted to. Then on explicit calls to
queue::wait and event::wait we make sure that these additional events
are complete as well.

The patch adds more logic to default redefinitions of PI APIs:
1. Allocate, refcount and deallocated various handles
2. Handle sub-buffer creation

Also the patch adds support for adding PI functions to be called in
addition (before or after) to the original function. This allows
intersecting PI API calls for introspection while still allowing
original function take care of handles. Or add some post processing
of the returned values.
Before the patch explicit waiting for the task which is expected to
print a message using sycl::stream doesn't guarantee that the message is
actually printed(the printing may happen later).
The patch adds such a guarantee by regestering events of stream service
tasks in the user event produced for the original user task as well as
in the queue where this task is submitted to. Then on explicit calls to
queue::wait and event::wait we make sure that these additional events
are complete as well.
@romanovvlad romanovvlad marked this pull request as ready for review October 25, 2022 18:05
@romanovvlad romanovvlad requested a review from a team as a code owner October 25, 2022 18:05
@romanovvlad romanovvlad changed the title Private/vromanov/stream fix1 [SYCL] Wait for stream service tasks Oct 26, 2022
Copy link
Contributor

@dm-vodopyanov dm-vodopyanov left a comment

Choose a reason for hiding this comment

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

LGTM!

@pvchupin pvchupin merged commit 1db0e81 into intel:sycl Nov 3, 2022
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Nov 4, 2022
intel#7130 added new ABI symbols but forgot
to add the new symbol to the Windows ABI test. This commit adds the
missing symbol.

Signed-off-by: Larsen, Steffen <[email protected]>
steffenlarsen added a commit that referenced this pull request Nov 4, 2022
#7130 added new ABI symbols but forgot
to add the new symbol to the Windows ABI test. This commit adds the
missing symbol.

Signed-off-by: Larsen, Steffen <[email protected]>
@pvchupin
Copy link
Contributor

pvchupin commented Nov 4, 2022

@romanovvlad
Copy link
Contributor Author

romanovvlad commented Nov 4, 2022

@romanovvlad, new post-commit fail: https://github.com/intel/llvm/actions/runs/3390067093/jobs/5633796277

Fixing. #7287

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