[L0v2] add submitted kernel vector compaction#20863
Closed
pbalcer wants to merge 1 commit intointel:syclfrom
Closed
[L0v2] add submitted kernel vector compaction#20863pbalcer wants to merge 1 commit intointel:syclfrom
pbalcer wants to merge 1 commit intointel:syclfrom
Conversation
b7c2fd9 to
28edef2
Compare
28edef2 to
5613d92
Compare
5613d92 to
66ccc2e
Compare
66ccc2e to
1f821a6
Compare
1f821a6 to
b709d8a
Compare
b709d8a to
0ee0092
Compare
0ee0092 to
0d4c03a
Compare
Contributor
Author
Eh, I tried adding margin to the memory use check to make it works across all adapters, but not sure if it's possible. If I add too much margin to account for other, unrelated, behavior like in L0v1, we won't catch issues in L0v2. |
0d4c03a to
5213941
Compare
5213941 to
fbd849e
Compare
L0v2 avoids internally tracking each kernel submission through an event for lifetime management. Instead, when a kernel is submitted to the queue, its handle is added to a vector, to be removed at the next queue synchronization point, urQueueFinish(). This is a much more efficient way of handling kernel tracking, since it avoids taking and storing an event. However, if the application never synchronizes the queue, this vector of submitted kernels will grow unbounded. This patch avoids this problem by dynamically compacting the submitted kernel vector at set intervals, deduplicating identical kernel handles. The larger the amount of unique kernels, the larger the vector will be.
kswiecicki
reviewed
Feb 16, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
L0v2 avoids internally tracking each kernel submission through an event for lifetime management. Instead, when a kernel is submitted to the queue, its handle is added to a vector, to be removed at the next queue synchronization point, urQueueFinish(). This is a much more efficient way of handling kernel tracking, since it avoids taking and storing an event. However, if the application never synchronizes the queue, this vector of submitted kernels will grow unbounded.
This patch avoids this problem by dynamically compacting the submitted kernel vector at set intervals, deduplicating identical kernel handles. The larger the amount of unique kernels, the larger the vector will be.