mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1730] [CLOSED] HIP: experimental Windows gfx906 compatibility with HIP 5.7 #3636
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#3636
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/1730
Author: @tuandat3019
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:codex/windows-gfx906-hip57📝 Commits (1)
0bdf2a0hip: add experimental Windows gfx906 HIP 5.7 compatibility📊 Changes
10 files changed (+234 additions, -10 deletions)
View changed files
📝
CMakeLists.txt(+17 -0)➕
docs/AMD_GFX906_WINDOWS.md(+138 -0)📝
docs/AMD_HIP.md(+4 -1)📝
include/strata/platform/hip_compat/cublas_v2.h(+10 -2)📝
include/strata/platform/hip_compat/strata_hip.h(+8 -1)📝
src/core/device.cu(+20 -5)📝
src/core/device_main.cpp(+4 -1)📝
src/core/pinned.cu(+5 -0)📝
src/prefill/kernels.cu(+7 -0)📝
tests/hip/gemm_f16_io_parity.cpp(+21 -0)📄 Description
Native Windows HIP 5.7 source builds of the opt-in gfx906 backend hit API/host-header incompatibilities, and the prompt activation flag was not addressable through
hipMemcpyToSymbolwith anonymous device linkage on the tested PAL stack. This adds an experimental manual build recipe and the compatibility fixes needed to build and exercise the engine on a single MI50 16 GiB.Closes #1728.
Changes:
The fixes already merged in #808 and #1396 are not repeated. This does not add a performance kernel, rocBLAS dispatch table, setup detection, ready-made Windows engine, vision or multi-GPU support.
Validation on 2026-10-09:
fb58e0dbc8399662c0e47c76578c6e878b14f6cf; exact pinned ggml revision3cf03257f219afbe7334045ff7c6a06ac68c627d.gfx906:sramecc-:xnack-, wave64; PRO 26.Q1 driver; native HIP/hipBLAS/rocBLAS 5.7, HIP clang 17, host clang 23 + MSVC 14.44, code object V5. No ZLUDA. The private SDK packaging/header repairs are explicitly documented; an untouched SDK was not tested.strata,strata-device,hip_gfx906_mapped_alias,hip_gfx906_gemm_f16_io_parity,iq_multi_parity,mmvq_multi_parityandsampler_parity.this engine targets gfx906 wave64before the arena selftest.amdhip64.dll/hipblas.dllimports and embedded gfx906 V5 objects; no CUDA runtime imports. Built engine SHA256:c793595b19b35f2f22ccae0d629853d6494f897da8f1bd575182708f55634f68.git diff --checkpassed. Comparing the changed core/prefill translation units after preprocessing without includes under CUDA and wave32 HIP defines gave unchanged conditional tokens. This is a limited source check, not a backend build or binary identity claim.Draft / not ready for review: this host lacks CUDA and SYCL toolchains and a Linux gfx906 environment. CUDA, wave32 HIP, Linux gfx906 and SYCL still need builds before review, as required by AGENTS.md. No end-to-end model inference or performance A/B of this new binary is claimed. The checks used an isolated build and the shared GPU lease; the production engine/config were not replaced.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.