-
Notifications
You must be signed in to change notification settings - Fork 797
[SYCL] Reuse discarded L0 events in scope of command list #7256
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
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8a377c7
[SYCL] Reuse discarded L0 events in scope of command list
againull 3135fd3
Don't use separate structure to handle discarded events, use pi_event…
againull 81c7a11
Reuse only ze_event handles, still create pi_event objects
againull 0448cb8
Simplify barrier insertion in the beginning of command list
againull 6541fb3
Enforce round robin behavior when reusing discarded events
againull 9603869
Handle LastCommandInBatchHostVisible mode properly in discard_events …
againull 3e72dd4
Remove redundant changes
againull 9446140
Remove redundant changes
againull c8ceca3
Remove redundant code
againull d649e28
Revert "Simplify barrier insertion in the beginning of command list"
againull eb5b2cb
Always insert a barrier in the beginning of command list
againull 1181324
Fix mistake
againull 563b05f
Fix mistake
againull 235e039
Add to cache in executeCommandList
againull a32aac6
Add guards and clarifying comments
againull 41d518c
Merge remote-tracking branch 'origin/sycl' into reuse_events_in_cmd_l…
againull 69d31e6
Merge remote-tracking branch 'origin/sycl' into reuse_events_in_cmd_list
againull 7c9f819
Get rid of LastDiscardedEvent and its methods
againull 75db6a1
Get rid of StartingBarrierEvents despite of affecting batching heuris…
againull 3f33705
Make signalled event to be referenced by first command of the next cm…
againull ec1ba6b
Add comments and rename methods
againull 0749827
Formatting
againull e46d7ac
Update comments
againull c60f72c
Rename LastCommandList->LastUsedCommandList
againull 5bd9c19
Document env variable
againull 849d1f6
Rename appendWaitAndResetIfLastEventDiscarded->resetDiscardedEvent
againull 6e42f6d
Rename addEventToCache/getEventFromCache for readability
againull 6cecfb4
Create helper query and add several comments
againull 17b0775
Add query only mode for getQueueIndex
againull cacce1b
Add a comment about batch closure
againull b5a1c29
Remove unnecessary and confusing conditions
againull a8358f5
Revert "Remove unnecessary and confusing conditions"
againull e9aeab3
Fix _pi_queue::doReuseDiscardedEvents method
againull 8bd411d
Add TODO to treat host proxy event as regular event
againull 6f8d5ee
Add clarifying comments on conditions
againull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename LastCommandList->LastUsedCommandList
- Loading branch information
commit c60f72c77245ab7dc77d4ab42b6c6774f6faae76
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fragile to use "NextIndex" directly here, maybe add a boolean to getQueueIndex that we just want to know the index (but not advance it)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, fixed as you suggested.