mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1728] [Bug]: Windows gfx906 compatibility with native HIP 5.7 #690
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#690
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?
Originally created by @tuandat3019 on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1728
What happened
The opt-in
STRATA_HIP_GFX906backend can be ported to a native Windows MI50 stack, but the Windows HIP 5.7 SDK needs compatibility changes beyond the current Linux recipe. This report concerns manual source builds, not setup detection or the ready-made Windows wave32 engine.The remaining source blockers are the modern hipBLAS V2 datatype names versus the legacy 5.7 GemmEx API, two missing stream-priority aliases, Windows pinned-memory code reading a DXGI LUID absent from legacy HIP device properties, and HIP clang 17 parsing recent MSVC STL C++20 code in
remote_expert_opt.cu. An anonymous-namespace prompt activation device symbol also needed external linkage for hosthipMemcpyToSymbolon the Windows/PAL stack. The engine should identify gfx906 wave64 correctly and reject a wave32 card before launching kernels.I searched the open issues and PRs and found no current Windows HIP 5.7 compatibility report covering these together. The fixes already merged for
cudaFuncSetAttribute(#808) and Q6_K / event declarations (#1396) are excluded from the proposed patch.Strata version, GPU, OS
Upstream main
fb58e0dbc8399662c0e47c76578c6e878b14f6cf, ggml pinned to3cf03257f219afbe7334045ff7c6a06ac68c627d; Windows 11; Instinct MI50 16 GiB, reported by the driver as AMD Radeon Pro VII, gfx906 wave64. Native HIP 5.7 / hipBLAS / gfx906 rocBLAS from AMD's 23.Q4 Windows HIP SDK, HIP clang 17, host clang 23 with MSVC 14.44, PRO 26.Q1 driver, code object V5. No ZLUDA.The SDK was copied into a private prefix with the hip-lang import prefix, device-bitcode directory, and six non-inline BF16 free functions repaired. This is not a claim that the untouched SDK works. The proposed documentation records these prerequisites.
Scope
Experimental opt-in compatibility only. No new optimized kernels, tuning tables, setup-card detection, vision, multi-GPU, or performance claim. I will link an accompanying draft PR with the build recipe and actual validation results. CUDA, wave32 HIP, Linux gfx906 and SYCL builds are not available on this host, so the draft will not request review yet.
@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for the detailed list. We cannot build against the Windows HIP 5.7 SDK here, so we cannot check these changes ourselves. Please send them as a PR, with every change guarded so that modern HIP, Linux and the other backends are untouched (the hipBLAS legacy GemmEx names, the two stream-priority aliases, the DXGI LUID read, the remote_expert_opt.cu STL workaround and the external linkage of the prompt activation symbol); we will merge it as opt-in after a Linux gfx906 and gfx1201 build check, and the build recipe goes in docs/AMD_HIP.md. One part is already in v0.1.42: the gfx906 build now checks every visible GPU at start and refuses a wave32 card with a message before any kernel is launched (compile-checked for gfx906 here, not run).
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
gr_mix_r: no kernel image is availableon engine 0.1.52 (HIP) #1980