Skip to content

[hip] Move alloc operations off the main stream - #20001

Merged
AWoloszyn merged 1 commit into
iree-org:mainfrom
AWoloszyn:wip_move_async
Feb 18, 2025
Merged

AWoloszyn merged 1 commit into
iree-org:mainfrom
AWoloszyn:wip_move_async

Conversation

@AWoloszyn

Copy link
Copy Markdown
Contributor

This gives us a secondary stream for hip async allocations. For sharded models, this means if device_0 is ahead of device_1 but device_1 requests an allocation on device_0, it will not be stalled until device_0 completes any existing work, as the allocation does not depend on that work.

This gives us a secondary stream for hip async allocations.
For sharded models, this means if device_0 is ahead of device_1
but device_1 requests an allocation on device_0, it will not
be stalled until device_0 completes any existing work, as
the allocation does not depend on that work.

Signed-off-by: Andrew Woloszyn <[email protected]>
@AWoloszyn
AWoloszyn merged commit 3c14d0d into iree-org:main Feb 18, 2025
@ScottTodd ScottTodd mentioned this pull request Mar 14, 2025
5 of 6 tasks
AWoloszyn added a commit that referenced this pull request Dec 1, 2025
This gives us a secondary stream for hip async allocations. For sharded
models, this means if device_0 is ahead of device_1 but device_1
requests an allocation on device_0, it will not be stalled until
device_0 completes any existing work, as the allocation does not depend
on that work.

Signed-off-by: Andrew Woloszyn <[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