Skip to content

[Stream] New ElideAsyncTransfersPass - #21029

Merged
benvanik merged 24 commits into
iree-org:mainfrom
ziereis:stream_elide_transfer_ops
Jul 14, 2025
Merged

benvanik merged 24 commits into
iree-org:mainfrom
ziereis:stream_elide_transfer_ops

Conversation

@ziereis

@ziereis ziereis commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

implementation for #20853.

I also changed the getDevice() function here of the DevicePromiseAttr to return the the attribute of the same type as the DeviceAffinityAttr so they are comparable.

@ziereis
ziereis requested a review from benvanik as a code owner June 6, 2025 15:51
@ziereis
ziereis marked this pull request as draft June 6, 2025 15:52
@ziereis

ziereis commented Jun 6, 2025

Copy link
Copy Markdown
Contributor Author

@benvanik i also just now noticed there is already a ElideAsyncTransfers pass that is run (disabled atm) in a different part in the pipeline. Should these two then get merged with an option flag for the cross device transfer (with topology) or should these be separate things?

ziereis added 3 commits June 23, 2025 13:59
Signed-off-by: default <[email protected]>
Signed-off-by: default <[email protected]>
Signed-off-by: default <[email protected]>
@ziereis
ziereis marked this pull request as ready for review June 23, 2025 14:18

@benvanik benvanik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an existing ElideAsyncTransferPass that this should replace - it's not currently used because it had some bugs. You can delete the old one, the commented-out addPass in Passes.cpp, and replace it with this as the same name in the same place you add it in the pipeline. It did allow for lifetime changes but we could always make this do the same in the future if we wanted.

ziereis added 2 commits July 1, 2025 14:17
Signed-off-by: default <[email protected]>
Signed-off-by: default <[email protected]>
@ziereis ziereis changed the title [Stream] Optional Pass to elide transfer ops [Stream] New ElideAsyncTransfersPass Jul 1, 2025
Signed-off-by: default <[email protected]>
@ziereis
ziereis requested a review from benvanik July 1, 2025 15:21
@ziereis

ziereis commented Jul 1, 2025

Copy link
Copy Markdown
Contributor Author

Thank you for the review!

@benvanik
benvanik merged commit 42df9b8 into iree-org:main Jul 14, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Implementation for #20853. 

I also changed the getDevice() function here of the `DevicePromiseAttr`
to return the the attribute of the same type as the `DeviceAffinityAttr`
so they are comparable.

---------

Signed-off-by: Thomas Ziereis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants