mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #2] [MERGED] Fix HIP doorbell publication and KDA parity initialization #274
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/2
Author: @boxwrench
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @mw00
Base:
main← Head:amd/hip-handoff-fences📝 Commits (1)
71b8d47Fix HIP doorbell publication and initialize KDA test state📊 Changes
5 files changed (+155 additions, -2 deletions)
View changed files
📝
CMakeLists.txt(+4 -0)📝
src/kernels/cuda/elementwise.cu(+7 -1)📝
src/kernels/cuda/glm_fast.cu(+5 -0)📝
src/kernels/glm_kda_parity.cpp(+3 -1)➕
tests/hip/glm_handoff.cpp(+136 -0)📄 Description
AMD host polling can stall when the GPU publishes a mapped-memory sequence counter but that store remains in its cache. Backport the publication fix from Strata #697 to the shared doorbells and Maya's own GLM routing signal.
Changes
doorbell_ring_kernel,doorbell_publish_kernel, andmoe_route_kernel.__HIPCC__.hip_glm_handoff: replay the actual captured routing graph for 100 disk requests and 100 CPU-lane requests, checking changing IDs, weights, input payloads and host answers. The CPU polls the signal without a driver query or synchronization before answering.cudaMemset, as its CPU reference already assumes. Keep its numerical tolerance unchanged.Validation
Host: RX 7900 XT (gfx1100, 20 GiB), Ryzen 7 9800X3D, 192 GB DDR5, native Ubuntu Linux, system ROCm 7.2.1 / Clang 22.
Initially developed from
c53ae2b; rebased and retested on current Maya 1.3.0,70e0746. The HIP binaries used the compatibility fixes from the companion Linux HIP setup draft (#3); this PR does not claim to repair all existing GLM HIP compilation blockers by itself.Both the shared handoff test and the actual GLM routing handoff also pass as isolated gfx1201 binaries on an AI PRO R9700. Full-engine validation was on gfx1100 only; no R9700 model support is enabled here.
CUDA was not compile-checked: this machine has no
nvcc. Please build CUDA once before merging. No full 321B model inference or throughput claim is made.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.