mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1083] [CLOSED] hip/gfx906: the tree does not build (three STRATA_USE_HIP gates miss STRATA_HIP_GFX906) #3011
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#3011
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/1083
Author: @xxDoman
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:gfx906-140.1-buildfix📝 Commits (1)
5f697b2hip/gfx906: the tree does not build (three STRATA_USE_HIP gates miss STRATA_HIP_GFX906)📊 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
Re-creation of #1066 on the new main (the history rewrite closed it; the code is unchanged and the files are byte-identical to v0.1.40, so I cherry-picked my commits onto
main).Problem
Building 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 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 above it 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, per the file's own comment).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.Scope / safety
Every affected line is inside an
#ifonly the gfx906 build reaches, so CUDA and the wave32 RDNA backend are untouched.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.The
dp4aitem is a separate PR (parity, not build-blocking).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.