Repository navigation
[hip] Move alloc operations off the main stream - #20001
Merged
Merged
Conversation
AWoloszyn
requested review from
antiagainst and
nithinsubbiah
as code owners
February 14, 2025 20:05
benvanik
approved these changes
Feb 14, 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]>
AWoloszyn
force-pushed
the
wip_move_async
branch
from
February 18, 2025 15:48
9b408ee to
79e95d4
Compare
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]>
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.
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.