mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #94] [CLOSED] Add experimental gfx1100 HIP backend for RX 7900 XTX #2452
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2452
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/Niko1221/Strata/pull/94
Author: @2jztricks
Created: 9/28/2026
Status: ❌ Closed
Base:
main← Head:feat/hip-gfx1100📝 Commits (1)
34f5e1cAdd experimental gfx1100 HIP backend and native mmap support📊 Changes
25 files changed (+1524 additions, -132 deletions)
View changed files
📝
CMakeLists.txt(+170 -101)📝
README.md(+3 -0)➕
cmake/hip_backend.cmake(+51 -0)➕
docs/AMD_HIP.md(+133 -0)📝
include/strata/core/expert_source.hpp(+8 -2)➕
include/strata/hip_compat/cublas_v2.h(+19 -0)➕
include/strata/hip_compat/cuda_fp16.h(+2 -0)➕
include/strata/hip_compat/cuda_runtime.h(+98 -0)➕
include/strata/hip_compat/cuda_runtime_api.h(+2 -0)➕
include/strata/hip_compat/intrinsics.hpp(+125 -0)📝
include/strata/kernels/bf16_bits.hpp(+9 -1)📝
include/strata/kernels/f16_bits.hpp(+9 -1)📝
include/strata/kernels/mrope.hpp(+1 -1)📝
include/strata/kernels/rope.hpp(+1 -1)📝
src/core/device.cu(+10 -0)📝
src/core/device_main.cpp(+4 -0)📝
src/core/expert_source.cpp(+107 -23)📝
src/kernels/cuda/fused_gr.cu(+4 -0)📝
src/kernels/cuda/native_qsa_score.cu(+42 -0)📝
src/kernels/cuda/ple.cu(+3 -2)...and 5 more files
📄 Description
Superseded by #121: the complete gfx1100 HIP support package with tuned prefill, bounded expert uploads and fresh benchmark results. Please review the replacement PR.
Adds an opt-in Linux HIP backend for the RX 7900 XTX (
gfx1100, wave32), so Strata can execute native quantized experts, prefill and MTP on AMD. CUDA remains the existing separate backend; this does not modify the installer or enable mixed-vendor inference.Changes
iq_pack.py --experts-bin.docs/AMD_HIP.md.Validation
Tested against main
c1e903310f211e6630780c3bd2038778c071c68dwith the repository-pinned llama.cpp dependency. Host: RX 7900 XTX 24 GiB, Ryzen 9 7950X3D, 64 GiB RAM, Fedora-family Linux, ROCm 7.1.52802 / Clang 20.strata-planbuild also passed.git diff --checkpassed.Limits
Experimental support is restricted to Linux gfx1100/wave32. No HIP ggml MMQ path, automated installer support, vision validation, full-context stress test, general answer-quality equivalence or mixed AMD/NVIDIA execution is claimed. Other AMD architectures need separate validation.
ple_parityneeds an external fixture;platform_memory_testrequests 256 MiB of locked memory and failed under the test shell's 8 MiB memlock limit. Both are explicitly excluded from the 25-test count. The original model smoke used mechanical RAID0 and incurred cold page faults, so it is compatibility evidence, not a throughput benchmark. Earlier measurements from a larger working branch are intentionally not attributed to this patch.Related to #48.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.