Skip to content

[HIP] Keep allocation completion ordered with its signal stream - #25291

Merged
jschuhmacher merged 1 commit into
mainfrom
users/jschuhmacher/hip_alloc_completion_stream
Nov 17, 2026
Merged

jschuhmacher merged 1 commit into
mainfrom
users/jschuhmacher/hip_alloc_completion_stream

Conversation

@jschuhmacher

Copy link
Copy Markdown
Contributor

Queue allocations run on the async memory stream and record their signal-semaphore events there. The cleanup event that advances those semaphores on the host, however, was always recorded on the dispatch stream. Allocation completion was therefore observed independently of the stream that performed it.

iree_hal_hip_device_stream_add_cleanup now records on the stream it is given, and semaphore signalling passes the stream its events were recorded on. Queue reads and submissions keep using the dispatch stream.

Assisted-by: Codex

Signed-off-by: Jelle Schuhmacher <[email protected]>

Assisted-by: Codex

@devtbi devtbi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jschuhmacher
jschuhmacher merged commit a5031bf into main Nov 17, 2026
77 of 79 checks passed
@jschuhmacher
jschuhmacher deleted the users/jschuhmacher/hip_alloc_completion_stream branch November 17, 2026 16:32
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