feat(clr): any-order overlap for oversubscribed shared HW queues.#8916
Draft
jaydeeppatel1111 wants to merge 1 commit into
Draft
feat(clr): any-order overlap for oversubscribed shared HW queues.#8916jaydeeppatel1111 wants to merge 1 commit into
jaydeeppatel1111 wants to merge 1 commit into
Conversation
❌ PR Check — Action Required
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🚫 Please fix the failed policies before requesting reviews. The following policy checks failed:
The |
jaydeeppatel1111
force-pushed
the
users/jaypatel/clr-shared-queue-anyorder-overlap
branch
from
July 21, 2026 11:46
c2b3c22 to
89c5c5d
Compare
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.
Motivation
When the number of HIP streams exceeds the hardware queue pool (GPU_MAX_HW_QUEUES, default 4), extra streams are recycled onto shared HW rings. Today every kernel keeps its head barrier bit set, so streams that merely share a ring serialize against each other even when they are logically independent — throughput collapses linearly with stream count. This adds an opt-in path that lets independent streams overlap on a shared ring, recovering most of the lost concurrency.
Technical Details
Issue Tracking
JIRA ID : AIRUNTIME-74
Test Plan
New correctness test unit/stream/hipSharedQueueAnyOrderOverlap.cc: independent oversubscribed streams produce correct results; explicit hipStreamWaitEvent dependencies are honored (must pass flag ON and OFF).
New perf test performance/scenarios/stream/hipPerfSharedQueueAnyOrderOverlap.cc: sweeps 2–32 streams, reports µs/iter.
Test Result
Full suite parity: ON and OFF on NV48
Performance (Performance_hipPerfSharedQueueAnyOrderOverlap, µs/iter) with streams 8, 16, 32 shows speedup 1.9x, 3.7x, 7.2x respectively.
Submission Checklist