Skip to content

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++

Windows Pascal/Volta source build: link the shared CUDA runtime only (#585)

Niko1221c9dbd8603c4c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff8766b20..69dc02535 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,6 +69,13 @@ if(STRATA_BUILD_CONVERSATION_TESTS)
endif()
if(STRATA_ENABLE_CUDA)
+ # #585: CMake links CUDA code with the STATIC runtime by default, and the targets below also link CUDA::cudart (the
+ # DLL's import library). MSVC with a CUDA 12.x toolkit - the experimental Pascal/Volta build - then fails with
+ # LNK1169 (every cudart symbol defined twice); GNU ld lets it pass. That build links the shared runtime alone. The
+ # ready-made engine (CUDA 13, no STRATA_EXPERIMENTAL_SM60) is unchanged; -DCMAKE_CUDA_RUNTIME_LIBRARY overrides.
+ if(MSVC AND STRATA_EXPERIMENTAL_SM60 AND NOT DEFINED CMAKE_CUDA_RUNTIME_LIBRARY)
+ set(CMAKE_CUDA_RUNTIME_LIBRARY Shared)
+ endif()
enable_language(CUDA)
# `enable_language(CUDA)` gives the .cu compile rules but NOT the imported targets, so `CUDA::cudart` has to
# be brought in explicitly for the host-side tests that call cudaMalloc themselves.
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
index 7af3a3e8b..aec9d89de 100644
--- a/docs/INSTALL.md
+++ b/docs/INSTALL.md
@@ -151,6 +151,9 @@ says so and starts the engine you had.
- **Where that data folder is:** `%APPDATA%\Strata\settings.json` on Windows, `~/.config/strata/settings.json` on
Linux ([details](DETAILS.md#before-you-start)).
- **The program itself:** `.venv/`, `engine/` and `third_party/` in the Strata folder.
+- **Where github.com cannot be reached:** a build from source downloads llama.cpp's source (ggml, gguf-py) from
+ GitHub at the commit `LLAMA_CPP_COMMIT` in `setup.py` names. Put that commit's tree in `third_party/llama.cpp`
+ yourself (from a mirror or another PC) and setup uses it instead (#585).
## Setup's questions