Skip to content

[SYCL] Skip alloca commands when checking for leaves completion #10740

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
Aug 9, 2023

Conversation

againull
Copy link
Contributor

@againull againull commented Aug 8, 2023

Scheduler::checkLeavesCompletion checks status of all leaves of the buffer to see whether we can destroy that sycl::buffer. There are many scenarios when alloca commands are leaves, these commands don't have associated event and currently they are always incorrectly considered "in progress" because of that preventing buffers to be destroyed timely and deferring their destruction till the point of program termination. Skip alloca commands to fix that.

@againull againull marked this pull request as ready for review August 8, 2023 16:04
@againull againull requested a review from a team as a code owner August 8, 2023 16:04
@againull againull requested a review from dm-vodopyanov August 8, 2023 16:04
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

@againull againull merged commit a5a5e03 into intel:sycl Aug 9, 2023
mdtoguchi pushed a commit to mdtoguchi/llvm that referenced this pull request Oct 18, 2023
…l#10740)

Scheduler::checkLeavesCompletion checks status of all leaves of the
buffer to see whether we can destroy that sycl::buffer. There are many
scenarios when alloca commands are leaves, these commands don't have
associated event and currently they are always incorrectly considered
"in progress" because of that preventing buffers to be destroyed timely
and deferring their destruction till the point of program termination.
Skip alloca commands to fix that.
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