Repository navigation
Conversation
Signed-off-by: Thomas Ziereis <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
ziereis
marked this pull request as draft
May 30, 2025 20:04
Collaborator
|
Interesting approach and a great discussion starter! I'll respond on the issue so we keep design discussions in one place. |
Contributor
Author
|
will close this in favour of whats been discussed in #20856. |
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.
draft implementation for #20856
This probably needs a lot of improvement in the design, I hope I can get some feedback here.
In general there are still a couple of open questions for me:
So to improve this I could imagine setting the buffer bits based on the topology information + usage information of the hal.device.optimal. However, this would require the topology information to always be available. While so far I understood it more as something (optional) that could be set at the higher level of the stack to enable optimizations (like eliding transfers) but should not be required to exist. However, this assumption could also be wrong on my side.
What I could also imagine as a plausible solution is to have an additional pass that runs before the stream-conversion that would query the devices for some default topology information (if it is not already set by the user). So have something like TargetDevice::getTopologyLinks() which would then replace the TargetDevice::setSharedUsageBits.
This would also have the benefit of removing the dependence of the TargetRegistry and DeviceAnalysis from the stream-conversion which I (sadly) introduced here.