[PR #2009] [CLOSED] Add experimental Linux gfx900 setup with wave64 validation #3803

Closed
opened 2026-11-07 15:30:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2009
Author: @sagentlab
Created: 10/11/2026
Status: ❌ Closed

Base: main ← Head: feat/gfx900-wave64-main


📝 Commits (4)

  • 53f0b02 Add opt-in Linux gfx900 setup using the wave64 backend
  • dde5002 Document longer context and a thinking budget for gfx900
  • a03f458 Preserve current ROCm setup and document measured gfx900 throughput
  • d25ea3e Compile current prefill kernels on gfx900 and record rebase checks

📊 Changes

11 files changed (+368 additions, -23 deletions)

View changed files

📝 CMakeLists.txt (+31 -0)
➕ docs/AMD_GFX900.md (+124 -0)
📝 docs/AMD_HIP.md (+4 -0)
📝 docs/OLDER_GPUS.md (+5 -1)
📝 include/strata/platform/hip_compat/strata_hip.h (+12 -1)
📝 setup.py (+40 -6)
📝 src/core/device.cu (+16 -15)
📝 src/core/device_main.cpp (+3 -0)
📝 src/prefill/kernels.cu (+5 -0)
➕ tests/hip/wave64_intrinsics.cpp (+56 -0)
➕ tools/test_setup_gfx900.py (+72 -0)

📄 Description

Vega 10 (gfx900) is rejected by ordinary setup. This adds an explicit Linux opt-in that installs gfx900-capable ROCm packages, builds the wave64 engine, and checks the device before downloading the model.

Replaces #839, which GitHub closed after the main-branch history rewrite. This branch starts at current upstream main (7695859a) and carries only the two original contribution commits plus rebase follow-ups, preserving their author.

  • Use STRATA_EXPERIMENTAL_GFX900=1 ./setup.sh --yes --backend hip; the experimental build uses build-gfx900 and TheRock packages pinned to 7.14.0a20260612. Existing architectures, ROCm family selection and iGPU handling retain the current main behavior. Windows and mixed gfx900/wave32 builds are refused.
  • Check the compiled architecture and wave size before launching kernels, fix the HIP/libstdc++ attribute conflict, and preserve modulo-2^32 signed software dp4a accumulation.
  • Provide a gfx900-only FP32-product/FP16-conversion fallback for the new main's optional prefill STRATA_GDN_NOY path, whose inline instruction cannot compile for gfx900. Its optional-path numerical parity is not claimed.
  • Put the wave64 intrinsic, BF16/FP16 GEMM and device tests under STRATA_BUILD_TESTS. Keep the installer device probe available when tests are off. Retain main's existing cudaFuncSetAttribute template and carve-out define without duplicating them.
  • Document installation, longer-context guidance and a retained 0.1.39 MI25 log measurement: 38 uncached prompt tokens at 39.9 tokens/s and 256 generated tokens at 31.6 tokens/s. This is one historical request, not a measurement of the rebased engine.

Validation on the rebased branch:

  • 211 setup tests pass across gfx900, AMD, choices, config, older GPUs, dependency pins, update, ROCm pins, Strix Halo, AMD startup and GPU-update suites.
  • CMake configures with tests on and off; with tests off, wave64 test targets are absent and strata-device remains available.
  • Full Release gfx900 strata engine build succeeds against current main (0.1.43).
  • Rebuilt wave64 intrinsic, BF16/FP16 GEMM and device self-tests: 3/3 pass on the MI25 with ROCm 7.14.0a20260612.
  • git diff --check passes.

The 2026-10-04 full installer and inference checks in docs/AMD_GFX900.md are historical evidence from #839. A gfx906 owner run requested in the previous review is still outstanding; this PC has gfx900, so no gfx906 runtime validation is claimed. The gfx906 signed dp4a instruction path remains unchanged. Images and multiple-card inference remain unvalidated.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2009 **Author:** [@sagentlab](https://github.com/sagentlab) **Created:** 10/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/gfx900-wave64-main` --- ### 📝 Commits (4) - [`53f0b02`](https://github.com/Niko1221/Strata/commit/53f0b0215b073170e6dc137563fc846a53b7b3fd) Add opt-in Linux gfx900 setup using the wave64 backend - [`dde5002`](https://github.com/Niko1221/Strata/commit/dde50022b2824e942afcebe14f2e097d703f15db) Document longer context and a thinking budget for gfx900 - [`a03f458`](https://github.com/Niko1221/Strata/commit/a03f4588ed9bf6844a279829ae0559dc823e5453) Preserve current ROCm setup and document measured gfx900 throughput - [`d25ea3e`](https://github.com/Niko1221/Strata/commit/d25ea3e07af193d560c8c125deacfe96cc7153ec) Compile current prefill kernels on gfx900 and record rebase checks ### 📊 Changes **11 files changed** (+368 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+31 -0) ➕ `docs/AMD_GFX900.md` (+124 -0) 📝 `docs/AMD_HIP.md` (+4 -0) 📝 `docs/OLDER_GPUS.md` (+5 -1) 📝 `include/strata/platform/hip_compat/strata_hip.h` (+12 -1) 📝 `setup.py` (+40 -6) 📝 `src/core/device.cu` (+16 -15) 📝 `src/core/device_main.cpp` (+3 -0) 📝 `src/prefill/kernels.cu` (+5 -0) ➕ `tests/hip/wave64_intrinsics.cpp` (+56 -0) ➕ `tools/test_setup_gfx900.py` (+72 -0) </details> ### 📄 Description Vega 10 (`gfx900`) is rejected by ordinary setup. This adds an explicit Linux opt-in that installs gfx900-capable ROCm packages, builds the wave64 engine, and checks the device before downloading the model. Replaces #839, which GitHub closed after the main-branch history rewrite. This branch starts at current upstream `main` (`7695859a`) and carries only the two original contribution commits plus rebase follow-ups, preserving their author. - Use `STRATA_EXPERIMENTAL_GFX900=1 ./setup.sh --yes --backend hip`; the experimental build uses `build-gfx900` and TheRock packages pinned to `7.14.0a20260612`. Existing architectures, ROCm family selection and iGPU handling retain the current main behavior. Windows and mixed gfx900/wave32 builds are refused. - Check the compiled architecture and wave size before launching kernels, fix the HIP/libstdc++ attribute conflict, and preserve modulo-2^32 signed software dp4a accumulation. - Provide a gfx900-only FP32-product/FP16-conversion fallback for the new main's optional prefill `STRATA_GDN_NOY` path, whose inline instruction cannot compile for gfx900. Its optional-path numerical parity is not claimed. - Put the wave64 intrinsic, BF16/FP16 GEMM and device tests under `STRATA_BUILD_TESTS`. Keep the installer device probe available when tests are off. Retain main's existing `cudaFuncSetAttribute` template and carve-out define without duplicating them. - Document installation, longer-context guidance and a retained 0.1.39 MI25 log measurement: 38 uncached prompt tokens at 39.9 tokens/s and 256 generated tokens at 31.6 tokens/s. This is one historical request, not a measurement of the rebased engine. Validation on the rebased branch: - 211 setup tests pass across gfx900, AMD, choices, config, older GPUs, dependency pins, update, ROCm pins, Strix Halo, AMD startup and GPU-update suites. - CMake configures with tests on and off; with tests off, wave64 test targets are absent and `strata-device` remains available. - Full Release gfx900 `strata` engine build succeeds against current main (0.1.43). - Rebuilt wave64 intrinsic, BF16/FP16 GEMM and device self-tests: 3/3 pass on the MI25 with ROCm `7.14.0a20260612`. - `git diff --check` passes. The 2026-10-04 full installer and inference checks in `docs/AMD_GFX900.md` are historical evidence from #839. A gfx906 owner run requested in the previous review is still outstanding; this PC has gfx900, so no gfx906 runtime validation is claimed. The gfx906 signed dp4a instruction path remains unchanged. Images and multiple-card inference remain unvalidated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:52 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3803
No description provided.