Skip to content

[SYCL] Don't synchronize last event if it is discarded #8993

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 2 commits into from
Apr 10, 2023

Conversation

againull
Copy link
Contributor

@againull againull commented Apr 7, 2023

No description provided.

@againull againull requested a review from a team as a code owner April 7, 2023 19:18
@againull againull temporarily deployed to aws April 7, 2023 19:42 — with GitHub Actions Inactive
@againull againull temporarily deployed to aws April 7, 2023 20:14 — with GitHub Actions Inactive
@@ -5921,7 +5921,7 @@ pi_result _pi_queue::synchronize() {
return PI_SUCCESS;

// For in-order queue just wait for the last command.
if (isInOrderQueue()) {
if (isInOrderQueue() && !LastCommandEvent->IsDiscarded) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? Isn't ZeEvent still there and can be synced?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I guess this is because it may not be host-scope right?

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, this is one of the reasons. And the main reason is that this event may be in reset state. Basically we can't explicitly synchronize discarded pi_event objects.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, but please add some comment about it.

@againull againull temporarily deployed to aws April 7, 2023 23:05 — with GitHub Actions Inactive
@againull againull temporarily deployed to aws April 7, 2023 23:37 — with GitHub Actions Inactive
@againull
Copy link
Contributor Author

againull commented Apr 10, 2023

Basic/memory-consumption.cpp fail is known: #9008
Device not found errors on SYCL Pre Commit / Linux / ESIMD Emu LLVM Test Suite (pull_request_target) are not related to the PR and issue is reported.

@againull againull merged commit 88e7c55 into intel:sycl Apr 10, 2023
@againull againull deleted the fix_imm_discarded branch April 17, 2023 16:50
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
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.

2 participants