mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
tools/packaging/build_cuda_linux.sh (x86 cuda12 / cuda13), tools/packaging/build_cuda_windows.py (cuda12 / cuda13), tools/docker/Dockerfile.src and the cuda-compile preset (the CUDA compile CI job mirrors the release flags). HIP, SYCL and Metal builds are unchanged (OFF), and STRATA_BUILD_HY4_FLASH_METAL stays OFF; the arm64 DGX Spark build (engine/spark/build_engine.sh) is not touched: Hy4 has not been built or run on arm64. Owner decision for 0.2.24: Hy4-Flash GGUF for NVIDIA only.
79 lines
3.3 KiB
JSON
79 lines
3.3 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. The ggml oracle is the vendored third_party/strata-ggml (no download); -DSTRATA_ORACLE_GGML_DIR=<llama.cpp checkout> replaces it (tests only).",
|
|
"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. A release build links no ggml.",
|
|
"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_BUILD_HY4_FLASH": "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. A release build links no ggml; 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"
|
|
}
|
|
]
|
|
}
|