mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #4] [CLOSED] Extend Linux HIP setup to R9700 with multi-architecture builds #275
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#275
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/4
Author: @boxwrench
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:amd/gfx1201-shared-hip📝 Commits (4)
fa3e4feAdd experimental Linux gfx1100 setup and GLM HIP compatibility5467bf7Port Strata multi-architecture HIP checks and RDNA4 intrinsicsb779100Check HIP architecture list normalization and rejection cases12fc591Document multi-architecture R9700 validation and compile-only gfx1151📊 Changes
28 files changed (+1069 additions, -69 deletions)
View changed files
📝
.gitignore(+4 -0)📝
CMakeLists.txt(+8 -0)📝
README.md(+3 -0)📝
cmake/hip_backend.cmake(+47 -8)📝
docs/AMD_HIP.md(+5 -0)➕
docs/AMD_MAYA.md(+102 -0)➕
docs/AMD_RDNA4.md(+77 -0)➕
docs/AMD_UPSTREAM.md(+72 -0)📝
include/strata/core/device.hpp(+3 -0)📝
include/strata/hip_compat/cublas_v2.h(+4 -0)➕
include/strata/hip_compat/cuda_profiler_api.h(+4 -0)📝
include/strata/hip_compat/cuda_runtime.h(+10 -0)📝
include/strata/hip_compat/intrinsics.hpp(+71 -33)📝
maya.py(+125 -10)📝
setup.py(+7 -6)📝
src/core/device.cu(+51 -5)📝
src/core/device_main.cpp(+1 -1)📝
src/core/glm_fast_path.cu(+6 -0)📝
src/core/glm_model.cu(+1 -1)📝
src/kernels/cuda/glm_batch.cu(+20 -4)...and 8 more files
📄 Description
The HIP runtime previously rejected every device except gfx1100, and its signed-byte dot instruction guard excluded RDNA4. Port upstream Strata's shared HIP architecture checks and intrinsics so one Maya binary can run on RX 7900 XT/XTX and RX 9070 / Radeon AI PRO R9700.
Stacked on #3: branch
amd/gfx1201-shared-hipstarts fromamd/glm-gfx1100-setup(fa3e4fe). Review only this PR's new changes. Upstream currently has onlymain, so GitHub's base ismainuntil #3 merges. This stays draft while the underlying HIP setup/full-model validation remains draft.Validation additionally uses the companion publication/KDA fixes from #2, kept out of this PR's new commits. The merged trees match the exact validation worktree. Original Maya
build-hip/and its download/trial worker were left untouched.Changes
d5ea713's CMake architecture categories and multi-architecture parsing. Normalize semicolon/space lists, retain feature suffixes for compilation, remove empty/duplicate entries, and supply a base-architecture list to runtime checks.arch_problem(): exact compiled-list membership after stripping feature suffixes, followed by the existing wave32 check. Update startup/device diagnostics to show actual and compiled architectures.v_perm_b32byte permutation, SWAR__vsub4/__vsubss4/__vcmpne4, and the upstream older-HIP warp synchronization fallback. Keep Maya's GLM runtime/BLAS mappings from #3.100202/100500. Table availability does not redirect GLM's existing hipBLAS/MMQ calls or establish a speedup.gfx1100;gfx1201;gfx1151, selects one supported discrete GPU, and reuses the same compiled architecture list on either card.Validation
Native Ubuntu Linux, Ryzen 7 9800X3D, 192 GB DDR5, ROCm 7.2.1 / Clang 22; RX 7900 XT gfx1100 20 GiB and AI PRO R9700 gfx1201 32 GiB. Maya base
70e0746(1.3.0), #3 basefa3e4fe, plus this PR and #2 for validation.One engine and all test targets were compiled with:
Engine SHA-256:
16664cfcb1cf34d9f6786a11de9a912e40149e839a5da3b9fbeea52050b8fd48. Inspection of its ELF.hip_fatbinsection finds 64 bundled entries for each of gfx1100, gfx1201 and gfx1151. No gfx1151 hardware test was performed.R9700, with
HIP_VISIBLE_DEVICES=1:The same 14-check suite with
HIP_VISIBLE_DEVICES=0passes 14/14 on the 7900 XT. Five installer tests and five actual CMake-parser tests pass:The device selftest reports
gfx1201 wave32 / gfx1100,gfx1201,gfx1151. Selecting the uncompiled iGPU (HIP_VISIBLE_DEVICES=2) exits 1 with:CUDA was not compile-checked: this host has no
nvcc; the author should build CUDA before merging the stack. Synthetic checks do not establish full-model quantized-expert/verification correctness or throughput. Full-model R9700 inference remains unverified. gfx11 WMMA prompt porting and setup-helper consolidation remain separate follow-ups after the first end-to-end run.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.