[AIMIGRAPHX-] MIGraphX ROCm 7.14 feature port.#53
Draft
TedThemistokleous wants to merge 2 commits into
Draft
Conversation
The MIGraphX EP synchronized the compute stream after every Compute call (staging, eager, and EPContext paths), forcing a full CPU/GPU serialization per node and destroying inference overlap - worst for graphs partitioned into multiple MIGraphX/other nodes. ORT owns the per-run compute stream (created in CreateSyncStreamForDevice, handed to the kernel via GetGPUComputeStream()) and already flushes it at run end through DeviceStreamCollection::CleanUp -> SyncStream::Flush, honoring the run's sync_stream setting. Intra-run cross-stream ordering is handled by ORT notifications. The EP therefore does not need to sync in the hot path. Also fix OnRunEnd, which synchronized the EP's default stream (stream_) - a stream that never carried compute work, since all kernels run on ORT's compute stream. That sync was both incorrect (wrong stream) and a redundant serialization point, so it is dropped and the now-unused stream_ member is removed. Outputs remain correct: all H2D/compute/D2D work is enqueued on the compute stream in order and ORT flushes it before returning results to the caller.
…ynamic bucket of IO
TedThemistokleous
marked this pull request as draft
July 21, 2026 21:59
apwojcik
approved these changes
Jul 22, 2026
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.
Porting outstanding items and features from the changes in ROCm 7.14_internal_testing from rocm/Onnxruntime