Repository navigation
[Stream] Add storage policy to async transfers - #25143
Conversation
|
Hi @Manewing, I’ve opened the Step 1 PR for #24930. This adds the optional Would appreciate your review when you get a chance. Thanks! |
| independently of the source and target storage affinities. When omitted an | ||
| execution affinity is derived from the resource lifetimes and endpoints. | ||
|
|
||
| The optional storage policy records the intended lowering choice: `copy` |
There was a problem hiding this comment.
suggestion: personally in favor of calling it alias and not reuse
There was a problem hiding this comment.
Hey @devtbi, thanks a lot for taking the time to review this.
I’ve updated the PR based on the feedback. Please have a look whenever you get a chance.
I’ve kept reuse for now instead of renaming it to alias, mainly so we can first make sure the semantics and implementation are sound. I’m happy to revisit the naming after that if needed.
Thanks again for the review.
Manewing
left a comment
There was a problem hiding this comment.
Thanks for the changes!
I think we should already update the canoncialization handling of the storage attribute in this PR, I think both belong together and should be implemented together. Unless there is a good reason I am missing here.
I left several comments on what I think the behavior should be in the respective cases. I also think we should make canonicalization make the storage attribute explicit, until it is a mandatory requirement, I think this makes it much nicer to read.
1ca1360 to
799c4d3
Compare
Manewing
left a comment
There was a problem hiding this comment.
Thanks for addressing the feedback, looks good! :)
You'll just need to address the failing pre-commit tests
Signed-off-by: purnima <[email protected]>
799c4d3 to
a65b65c
Compare
thanks for your guidance i have done the required changes |
devtbi
left a comment
There was a problem hiding this comment.
@purnima-nlp thank you :)
Description
Adds an optional storage policy to
stream.async.transferto distinguish whether lowering should eventually:copy)reuse)When the policy is omitted, existing behavior is same.
This change only introduces and preserves the storage choice in Stream IR. It does not yet change allocation, transfer lowering, or cache-maintenance behavior.
Canonicalization is kept conservative for transfers with an explicit storage policy so that the policy is not silently dropped before later lowering consumes it.
Part of #24930.