[GH-ISSUE #1728] [Bug]: Windows gfx906 compatibility with native HIP 5.7 #690

Closed
opened 2026-11-04 01:45:06 +07:00 by bsakaguchi · 2 comments
Owner

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_GFX906 backend 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 host hipMemcpyToSymbol on 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 to 3cf03257f219afbe7334045ff7c6a06ac68c627d; 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.

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_GFX906` backend 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 host `hipMemcpyToSymbol` on 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 to `3cf03257f219afbe7334045ff7c6a06ac68c627d`; 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.
Author
Owner

@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).

<!-- gh-comment-id:6099719338 --> @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).
Author
Owner

@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.

<!-- gh-comment-id:6156192641 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
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#690
No description provided.