Files
Strata/engine/CMakePresets.json
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
2026-11-17 13:19:21 +01:00

78 lines
3.4 KiB
JSON

{
"version": 5,
"cmakeMinimumRequired": { "major": 3, "minor": 24, "patch": 0 },
"configurePresets": [
{
"name": "cpu-check",
"displayName": "CPU check build (no GPU, no network)",
"description": "The fast check: the CPU-only engine pieces and every test that needs no GPU and no model, the conversation cache and park pool tests included. STRATA_NATIVE_EXPERTS=OFF, so ggml is not needed. tools/check runs this preset.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"STRATA_BUILD_TESTS": "ON",
"STRATA_BUILD_CONVERSATION_TESTS": "ON",
"STRATA_NATIVE_EXPERTS": "OFF"
}
},
{
"name": "cpu-check-native",
"displayName": "CPU check build with the native expert tests",
"description": "As cpu-check plus the native (IQ) expert kernels and their tests. ggml comes from the vendored third_party/strata-ggml (no download); -DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it.",
"inherits": "cpu-check",
"cacheVariables": { "STRATA_NATIVE_EXPERTS": "ON" }
},
{
"name": "cuda-compile",
"displayName": "CUDA compile-only (the release flags of packaging/build_cuda_linux.sh, no tests)",
"description": "Builds the strata target for the given CUDA architectures. No GPU is needed to compile; nothing is run. ggml is the vendored third_party/strata-ggml; -DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"STRATA_ENABLE_CUDA": "ON",
"STRATA_BUILD_TESTS": "OFF",
"STRATA_NATIVE_EXPERTS": "ON",
"STRATA_PORTABLE": "ON",
"STRATA_Q6K_EXPERTS": "ON",
"STRATA_EXPERIMENTAL_SM60": "OFF",
"CMAKE_CUDA_ARCHITECTURES": "86-real;89-real;89-virtual"
}
},
{
"name": "hip-compile",
"displayName": "HIP compile-only (the release flags of packaging/build_hip_linux.sh, no tests)",
"description": "Builds the strata target for gfx1100 and gfx1201 with ROCm's hipcc. ggml is the vendored third_party/strata-ggml (-DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it); if hipcc is not on PATH pass -DCMAKE_HIP_COMPILER=<rocm>/llvm/bin/clang++.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"STRATA_ENABLE_HIP": "ON",
"STRATA_ENABLE_CUDA": "OFF",
"STRATA_BUILD_TESTS": "OFF",
"STRATA_PORTABLE": "ON",
"CMAKE_HIP_ARCHITECTURES": "gfx1100;gfx1201"
}
}
],
"buildPresets": [
{ "name": "cpu-check", "configurePreset": "cpu-check", "jobs": 0 },
{ "name": "cpu-check-native", "configurePreset": "cpu-check-native", "jobs": 0 },
{ "name": "cuda-compile", "configurePreset": "cuda-compile", "targets": ["strata"], "jobs": 0 },
{ "name": "hip-compile", "configurePreset": "hip-compile", "targets": ["strata"], "jobs": 0 }
],
"testPresets": [
{
"name": "cpu-check",
"configurePreset": "cpu-check",
"output": { "outputOnFailure": true, "shortProgress": true },
"execution": { "timeout": 120, "noTestsAction": "error", "jobs": 4 }
},
{
"name": "cpu-check-native",
"configurePreset": "cpu-check-native",
"inherits": "cpu-check"
}
]
}