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++
Accept sm_80+ GPUs at runtime, matching the build guard and the README
mikicvi941f671d65ab
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 929d6a6d2..e00ec8f1c 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -4,9 +4,9 @@# `strata-pack` are added when their sources exist - a target with no sources would make the build graph# claim something the tree does not have, which is worse than an absent target.#-# CUDA targets arrive in Phase 2 and this build REJECTS any architecture other than 120: the engine is-# written against sm_120 (RTX 5000 / Blackwell) and silently building for an older arch would produce a-# binary that runs and is wrong about its own performance, which is the worst of both outcomes.+# CUDA targets arrive in Phase 2. The kernels need sm_80 or newer (tf32 mma, bf16 math) and the guard+# below refuses anything older: silently building for a pre-Ampere arch would produce a binary that runs+# and is wrong about its own performance, which is the worst of both outcomes.cmake_minimum_required(VERSION 3.24)project(strata VERSION 0.1.20 LANGUAGES CXX)add_compile_definitions(STRATA_VERSION="${PROJECT_VERSION}")diff --git a/src/core/device.cu b/src/core/device.cuindex 9b8a53731..1d793ee9f 100644--- a/src/core/device.cu+++ b/src/core/device.cu@@ -30,7 +30,7 @@ DeviceInfo device_info(int ordinal) {int count = 0;check(cudaGetDeviceCount(&count), "cudaGetDeviceCount");if (count == 0) {- throw CudaError("no CUDA device is present; Strata targets sm_120 (RTX 5000 series)", -1);+ throw CudaError("no CUDA device is present; Strata needs an NVIDIA GPU of compute capability 8.0 or newer", -1);}if (ordinal < 0 || ordinal >= count) {throw CudaError("device ordinal " + std::to_string(ordinal) + " is out of range (have " +@@ -56,13 +56,14 @@ DeviceInfo device_info(int ordinal) {check(cudaDriverGetVersion(&d.driver_version), "cudaDriverGetVersion");check(cudaRuntimeGetVersion(&d.runtime_version), "cudaRuntimeGetVersion");- // The engine is written against sm_120. Compiling for it is enforced by CMake; RUNNING on something else- // is caught here, because a binary can be carried to a machine with an older card and would otherwise- // silently take whatever path the driver chose.- if (d.cc_major != 12) {+ // The kernels need sm_80 or newer (tf32 mma in the attention scorer, bf16 math) - the same floor the+ // arch guard in CMakeLists enforces at build time (RTX 30 / 40 / 50). Anything older is caught here,+ // because a binary can be carried to a machine with an older card and would otherwise silently take+ // whatever path the driver chose. Pre-Blackwell is untested by the author; trust, then verify.+ if (d.cc_major < 8) {throw CudaError("device " + d.name + " reports compute capability " + std::to_string(d.cc_major) +"." + std::to_string(d.cc_minor) +- "; Strata targets sm_120 (RTX 5000 series / Blackwell) only",+ "; Strata needs an NVIDIA GPU of compute capability 8.0 or newer (RTX 30 / 40 / 50)",-1);}return d;