Skip to content

[SYCL][L0] Optimize sync of an in-order queue #8601

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
Mar 10, 2023

Conversation

smaslov-intel
Copy link
Contributor

No description provided.

@smaslov-intel smaslov-intel requested a review from againull March 9, 2023 23:46
@smaslov-intel smaslov-intel requested a review from a team as a code owner March 9, 2023 23:46
@smaslov-intel
Copy link
Contributor Author

@jandres742 : please review


// For in-order queue just wait for the last command.
if (isInOrderQueue()) {
ZE_CALL(zeHostSynchronize, (LastCommandEvent->ZeEvent));
Copy link
Contributor

Choose a reason for hiding this comment

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

this works only if LastCommandEvent is the true last event of all the objects in QueueMap::QueueGroup. if so, then this is good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that's what is in LastCommandEvent, the last command submitted to the PI/UR queue.

@smaslov-intel smaslov-intel temporarily deployed to aws March 10, 2023 00:12 — with GitHub Actions Inactive
@smaslov-intel smaslov-intel temporarily deployed to aws March 10, 2023 00:48 — with GitHub Actions Inactive
@smaslov-intel
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1652

@againull againull merged commit 67e63cf into intel:sycl Mar 10, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request Apr 21, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request Apr 24, 2023
againull pushed a commit that referenced this pull request May 2, 2023
Fixes regression introduced by #8601

Signed-off-by: Sergey V Maslov <[email protected]>
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 3, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 16, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 23, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 26, 2023
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