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++
HIP: a failed first configure no longer leaves the kernels at -O0
BlueKingMuch0af54b6f56f1
diff --git a/cmake/hip_backend.cmake b/cmake/hip_backend.cmakeindex 7d55b31c7..bb19864ef 100644--- a/cmake/hip_backend.cmake+++ b/cmake/hip_backend.cmake@@ -43,6 +43,18 @@ endif()string(REPLACE ";" "," STRATA_HIP_ARCHS "${STRATA_HIP_ARCH_LIST}")enable_language(HIP)+# CMake caches CMAKE_HIP_FLAGS_<CONFIG> while it enables HIP, before it tests the compiler. A configure that stopped+# there because HIP could not compile at all (Visual Studio 2026's <cmath> with the HIP SDK 7.2, a wrong ROCm path)+# cached them empty, and every later configure of that build folder keeps them: setup's Release build then compiled+# all kernels at -O0 (an RX 6800 decoded at 0.24-0.27 tok/s instead of 28). Empty ones get what CMake gives a fresh+# build folder.+foreach(_cfg IN ITEMS DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)+ string(STRIP "${CMAKE_HIP_FLAGS_${_cfg}_INIT}" _strata_init)+ if("${CMAKE_HIP_FLAGS_${_cfg}}" STREQUAL "" AND NOT "${_strata_init}" STREQUAL "")+ set(CMAKE_HIP_FLAGS_${_cfg} "${_strata_init}" CACHE STRING+ "Flags used by the HIP compiler during ${_cfg} builds." FORCE)+ endif()+endforeach()find_package(hip CONFIG REQUIRED)find_package(hipblas CONFIG REQUIRED)# Older distro hipBLAS has no workspace API. The compatibility shim usesdiff --git a/setup.py b/setup.pyindex ba41dd1fb..fcc09830e 100644--- a/setup.py+++ b/setup.py@@ -2602,7 +2602,7 @@ def cmake_build(src, bdir, target, defs, vcvars, bat_name):run(build)-ENGINE_SOURCES = ("CMakeLists.txt", "src", "include", "third_party/ggml")+ENGINE_SOURCES = ("CMakeLists.txt", "cmake", "src", "include", "third_party/ggml")VISION_SOURCES = ("tools/vision",)