Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
gfx906 build: refuse a wave32 card at start with a message (#1728); docs: community-tested, opt-in note
Niko12210b3139ec1847
diff --git a/docs/AMD_HIP.md b/docs/AMD_HIP.mdindex 8b1e75659..e75208abe 100644--- a/docs/AMD_HIP.md+++ b/docs/AMD_HIP.md@@ -468,6 +468,8 @@ gfx906 is wave64 and has no WMMA and no packed byte arithmetic, so the wave32 ba(32-wide shuffles, a ballot of its own half). The hot kernels have wave64 layouts of their own (below). Setup doesnot build it yet: build by hand, and run `serve/server.py` with a config as on any other card.+**Community-tested, opt-in (0.1.42).** The gfx906 build is maintained with its users: we have no gfx906 card, so what is here was measured by community members on their MI50s (the attention switches `STRATA_GFX906_ATTN_QUERY_SWIZZLE=1` and `STRATA_GFX906_ATTN_REDUCE12=1`, PRs #1661 and #1718 by 0FL01, are off by default and compiled only into this build) and the engine here is checked to compile for gfx906, nothing more. Nothing in it changes the builds for other cards. A wave32 card seen by this build is refused at start with a message (#1728). Please report how it runs on your card.+**ROCm.** AMD's current ROCm releases no longer ship gfx906 libraries. The build and the measurements below usedHIP 7.14 from the community image [`mixa3607/rocm-gfx906:7.14-complete`](https://hub.docker.com/r/mixa3607/rocm-gfx906)(rocBLAS/hipBLAS with gfx906 kernels), on the kernel's amdgpu driver (Ubuntu 24.04, kernel 6.8). hipBLASLt is notdiff --git a/src/program/generate.cpp b/src/program/generate.cppindex 694aa0ac6..5e334ef8e 100644--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@ -2064,6 +2064,23 @@ int main(int argc, char** argv) {if (cudaGetDeviceProperties(&ad, 0) == cudaSuccess) strata::core::apply_arch_defaults(ad.gcnArchName);else (void) cudaGetLastError();}+#endif+#if defined(STRATA_HIP_GFX906)+ { // #1728: the gfx906 build's kernels assume 64-lane waves; on a wave32 card they would fault or give wrong+ // numbers, so say so before the first launch (the ready-made wave32 engine is the one for those cards)+ int n_dev = 0;+ if (cudaGetDeviceCount(&n_dev) == cudaSuccess) {+ for (int d = 0; d < n_dev; ++d) {+ cudaDeviceProp wp{};+ if (cudaGetDeviceProperties(&wp, d) == cudaSuccess && wp.warpSize != 64) {+ std::fprintf(stderr, "strata generate: this engine was built for gfx906 (wave64, STRATA_HIP_GFX906), but GPU %d "+ "(%s) has %d-lane waves: use the ready-made engine for that card, or hide it "+ "(HIP_VISIBLE_DEVICES)\n", d, wp.name, wp.warpSize);+ return 2;+ }+ }+ } else (void) cudaGetLastError();+ }#endifstrata::core::set_coupled_draft(o.coupled_draft);{ // --host-core / STRATA_HOST_CORE, before the pool and the session pin any thread