Skip to content

[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 35 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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 Oct 20, 2022
3135fd3
Don't use separate structure to handle discarded events, use pi_event…
againull Nov 2, 2022
81c7a11
Reuse only ze_event handles, still create pi_event objects
againull Nov 3, 2022
0448cb8
Simplify barrier insertion in the beginning of command list
againull Nov 3, 2022
6541fb3
Enforce round robin behavior when reusing discarded events
againull Nov 3, 2022
9603869
Handle LastCommandInBatchHostVisible mode properly in discard_events …
againull Nov 3, 2022
3e72dd4
Remove redundant changes
againull Nov 3, 2022
9446140
Remove redundant changes
againull Nov 3, 2022
c8ceca3
Remove redundant code
againull Nov 3, 2022
d649e28
Revert "Simplify barrier insertion in the beginning of command list"
againull Nov 4, 2022
eb5b2cb
Always insert a barrier in the beginning of command list
againull Nov 4, 2022
1181324
Fix mistake
againull Nov 4, 2022
563b05f
Fix mistake
againull Nov 4, 2022
235e039
Add to cache in executeCommandList
againull Nov 4, 2022
a32aac6
Add guards and clarifying comments
againull Nov 8, 2022
41d518c
Merge remote-tracking branch 'origin/sycl' into reuse_events_in_cmd_l…
againull Nov 9, 2022
69d31e6
Merge remote-tracking branch 'origin/sycl' into reuse_events_in_cmd_list
againull Nov 16, 2022
7c9f819
Get rid of LastDiscardedEvent and its methods
againull Nov 16, 2022
75db6a1
Get rid of StartingBarrierEvents despite of affecting batching heuris…
againull Nov 16, 2022
3f33705
Make signalled event to be referenced by first command of the next cm…
againull Nov 16, 2022
ec1ba6b
Add comments and rename methods
againull Nov 16, 2022
0749827
Formatting
againull Nov 16, 2022
e46d7ac
Update comments
againull Nov 17, 2022
c60f72c
Rename LastCommandList->LastUsedCommandList
againull Nov 17, 2022
5bd9c19
Document env variable
againull Nov 17, 2022
849d1f6
Rename appendWaitAndResetIfLastEventDiscarded->resetDiscardedEvent
againull Nov 17, 2022
6e42f6d
Rename addEventToCache/getEventFromCache for readability
againull Nov 17, 2022
6cecfb4
Create helper query and add several comments
againull Nov 17, 2022
17b0775
Add query only mode for getQueueIndex
againull Nov 17, 2022
cacce1b
Add a comment about batch closure
againull Nov 17, 2022
b5a1c29
Remove unnecessary and confusing conditions
againull Nov 17, 2022
a8358f5
Revert "Remove unnecessary and confusing conditions"
againull Nov 17, 2022
e9aeab3
Fix _pi_queue::doReuseDiscardedEvents method
againull Nov 17, 2022
8bd411d
Add TODO to treat host proxy event as regular event
againull Nov 18, 2022
6f8d5ee
Add clarifying comments on conditions
againull Nov 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sycl/doc/EnvironmentVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ variables in production code.</span>
| `SYCL_PI_LEVEL_ZERO_USE_MULTIPLE_COMMANDLIST_BARRIERS` | Integer | When set to a positive value enables use of multiple Level Zero commandlists when submitting barriers. Default is 1. |
| `SYCL_PI_LEVEL_ZERO_USE_COPY_ENGINE_FOR_FILL` | Integer | When set to a positive value enables use of a copy engine for memory fill operations. Default is 0. |
| `SYCL_PI_LEVEL_ZERO_SINGLE_ROOT_DEVICE_BUFFER_MIGRATION` | Integer | When set to "0" tells to use single root-device allocation for all devices in a context where all devices have same root. Otherwise performs regular buffer migration. Default is 1. |
| `SYCL_PI_LEVEL_ZERO_REUSE_DISCARDED_EVENTS` | Integer | When set to a positive value enables the mode when discarded Level Zero events are reset and reused in scope of the same in-order queue based on the dependency chain between commands. Default is 1. |

## Debugging variables for CUDA Plugin

Expand Down
Loading