mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1066] [CLOSED] hip/gfx906: the 0.1.40 tree does not build (three STRATA_USE_HIP gates miss STRATA_HIP_GFX906) #3002
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#3002
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/1066
Author: @xxDoman
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:gfx906-140-buildfix📝 Commits (10+)
f4e96d5tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise16bc95aprefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise502fcef#606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too64d0136cache: preserve checkpoints when split allocation failsa0d0056prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy)5f5452bserve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking8b19a38Layer split: --vram-reserve-later-mib, a separate reserve for the later cardsea83d0dResident RAM mode with a layer splitd2d981fsetup: the low-RAM mode's resident variant on several GPUs (#642)cd62e5eserve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
src/core/mtp.cpp(+1 -1)📝
src/core/vmm.cpp(+1 -1)📝
src/kernels/cuda/fused_gr.cu(+1 -1)📄 Description
Problem
Building 0.1.40 for gfx906 (
-DSTRATA_HIP_GFX906=ON) fails with three compile errors. The gfx906 build definesSTRATA_HIP_GFX906, notSTRATA_USE_HIP(that one belongs to the wave32 HIP backend). Three sites gate only onSTRATA_USE_HIP, so on gfx906 they keep the CUDA branch and do not compile. #808 already fixed the same class of thing instrata_hip.h.Errors and fixes
1.
src/kernels/cuda/fused_gr.cu— a barereturn;in thebool fused_gr_read_multi, inside theSTRATA_HIP_GFX906STRATA_GR_SPLITblock:→
return false;— the q8_1 contract of the other multi-token paths (no q8_1; the caller quantizes). The v3 path three lines up already returnsfalse.2.
src/core/mtp.cpp— the MTP stream-priority block:→ gate the block on
!defined(STRATA_HIP_GFX906)as well (HIP has no stream priority; the default priority is the intended behaviour, as the file's own comment says).3.
src/core/vmm.cpp(new in 0.1.40) — includes<cuda.h>for the CUDA driver VMM API:→ the same gate. The file already has the HIP fallback in its
#elsebranch (vmm_available() == false).Scope / safety
Every affected line is inside an
#ifthat only the gfx906 build reaches, so CUDA and the wave32 RDNA backend are untouched. No behaviour change on any other backend.Verified
[100%] Linking HIP executable strata, EXIT 0, links onlylibhipblas/libamdhip64/librocblas/libhipblaslt(ROCm 7.2.1). The engine starts on a 2x gfx906 rig (Instinct MI50 32 GB + Radeon VII 16 GB) and generates.Separate from this: a performance item (gfx906 has
v_dot4_i32_i8butdp4afalls back to a 4-iteration loop) — I will open that on its own, since it needs a parity test rather than being build-blocking.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.