Skip to content

Optimize hostcall for high contention#2178

Open
lamb-j wants to merge 1 commit intoamd-stagingfrom
cherry-pick/hostcall-opt
Open

Optimize hostcall for high contention#2178
lamb-j wants to merge 1 commit intoamd-stagingfrom
cherry-pick/hostcall-opt

Conversation

@lamb-j
Copy link
Copy Markdown
Collaborator

@lamb-j lamb-j commented Apr 13, 2026

Cherry-pick of #2115 to amd-staging.

Optimize hostcall for high contention using an approach from Joseph Huber.

Original author: Brian Sumner

@lamb-j lamb-j requested a review from b-sumner as a code owner April 13, 2026 17:56
@z1-cciauto
Copy link
Copy Markdown
Collaborator

lamb-j added a commit to ROCm/TheRock that referenced this pull request Apr 13, 2026
Add patches for both llvm-project (device-libs) and rocm-systems (CLR)
to validate the coordinated hostcall protocol change in TheRock CI.
The device-side and host-side changes replace the lock-free stack with
a phase-toggle scanning approach and must land atomically — the buffer
layout and synchronization protocol are incompatible between old and new.

These patches should be removed when both submodules are bumped to
include the upstream changes.

Upstream PRs:
- ROCm/llvm-project#2178
- ROCm/rocm-systems#4872

Co-Authored-By: Claude <noreply@anthropic.com>
@z1-cciauto
Copy link
Copy Markdown
Collaborator

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.

3 participants