mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #69] [CLOSED] Add Windows support for AMD HIP backend with Strix Halo/Gorgon Halo #313
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#313
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/69
Author: @mw00
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:claude/eager-carson-bhc1g4📝 Commits (7)
53b0869AMD on Windows: START-MAYA.bat --backend hip, Strix Halo / Gorgon Halo includedec6bf8fWindows HIP: VS 2026, rocm-sdk init first, the SDK's HIP runtime beside strata.exe10c0c7dMerge remote-tracking branch 'origin/main' into claude/eager-carson-bhc1g449df00fWindows HIP on a real Gorgon Halo: AMD's HIP SDK, every launch submitted, the HIP checks pass76cdf6aMerge remote-tracking branch 'origin/main' into claude/eager-carson-bhc1g43ba9eb7Maya-L runs on a Gorgon Halo under Windows: the pool in pieces, submission without flushing every launche93e42dMerge remote-tracking branch 'origin/claude/eager-carson-bhc1g4' into claude/eager-carson-bhc1g4📊 Changes
13 files changed (+799 additions, -72 deletions)
View changed files
📝
.gitignore(+1 -0)📝
CHANGELOG.md(+28 -0)📝
README.md(+12 -7)📝
docs/AMD_MAYA.md(+52 -2)📝
include/strata/hip_compat/cuda_runtime.h(+3 -0)📝
maya.py(+228 -45)📝
setup.py(+85 -9)📝
src/core/glm_fast_path.cu(+70 -3)📝
src/core/glm_fast_state.hpp(+3 -1)📝
tests/hip/glm_handoff.cpp(+5 -2)📝
tests/hip/handoff.cpp(+4 -2)📝
tests/hip/prefill_mmq_parity.cpp(+4 -1)📝
tools/test_maya_hip.py(+304 -0)📄 Description
Summary
Native Windows support for Maya's experimental AMD HIP backend:
START-MAYA.bat --backend hipnow sets Maya up on Windows 10/11 as./maya.sh --backend hipdoes on Linux, for Strix Halo / Gorgon Halo (Ryzen AI Max 300 / 400, Radeon 8050S / 8060S / 8065S,gfx1151) and the discrete cards (RX 7900 XT / XTX, RX 9070 / R9700). Before,check_hip_pcrefused Windows and only the manualtools\hip\build_maya_windows.bat(#54) existed.Key Changes
parse_hipinfo()reads ROCm's hipInfo (HIP's own order andgcnArchName); without it,parse_display_adapters()reads Windows' AMD display adapters from the registry (PCI device ID, then name). hipInfo that sees no GPU warns before the compile and the download.ROCM_PATH, else TheRock'srocm-sdk(ROCM_VENV, Maya's.venv, PATH;rocm-sdk initruns, shown and with no time limit, before anyrocm-sdk path), else AMD's HIP SDK (HIP_PATH, else the newest inC:\Program Files\AMD\ROCm). With none, the setup offersrocm[libraries,devel,device-<arch>]==7.14.1fromrepo.amd.com/rocm/whl-multi-archinto.venv, and does the same when a chosen GPU'srocm-sdk-device-<arch>is missing;--checkprints the command instead.compile_engine_hip()on Windows followsbuild_maya_windows.bat: ROCm's clang for C/C++/HIP, Ninja, vcvars64, forward-slash paths,STRATA_PORTABLE=ON,HIP_DEVICE_LIB_PATH. Visual Studio Build Tools 2022 or 2026 (find_vcvars(cuda=False); the [16, 18) cap stays CUDA-only), checked before the ROCm download. The SDK'samdhip64*.dll,amd_comgr*.dllandrocm_kpack*.dllare copied next tobuild-hip\strata.exe, because Windows loads System32's (the driver's HIP runtime) before PATH.F->unified_memoryis not set on Windows. Windows gives the APU's GPU a fixed carve-out (Variable Graphics Memory) that it does not count as RAM, so the APU is sized like a discrete card: the pool fromcudaMemGetInfofree, the RAM tier from min(free RAM, free commit). Linux is unchanged.cudaStreamQueryafter 1 ms without a route, under_WIN32 && STRATA_USE_HIPonly.STRATA_GLM_RESERVE_MB=3072(the desktop runs on that GPU), and the prompt budget is picked by RAM + GPU memory.--reporton Windows lists hipInfo's GPUs. Docs (README, docs/AMD_MAYA.md#windows, CHANGELOG) and installer tests in tools/test_maya_hip.py. Two HIP test fixes intests/hip/(glm_handoff'sskip_fromargument;prefill_mmq_parity's sentinel memset on the null stream).Status
Run on a Ryzen AI Max+ PRO 495 / Radeon 8065S (Gorgon Halo, 192 GB, 160 GB of it the GPU's), Windows 11, HIP SDK 7.2:
--benchdecodes 15.9 tokens/s and reads 345 tokens/s of an 8K-token prompt.The TheRock-wheel install path (
rocm-sdk) was not the one exercised there.https://claude.ai/code/session_01F9nLHFUGB34377u9Mr9cVW
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.