okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-own-1a (451f3e8a6): own-stack phase 1A and cleanup 5.4; the ggml/MMQ sources the engines build are vendored in third_party/strata-ggml (frozen at the pin, manifest and check), default engine builds need no llama.cpp download, the TQ overlay is plain files, CMakeLists.txt is split into cmake/backends/*; every engine unchanged (CUDA/HIP gfx1201/gfx1151/SYCL device code identical, SYCL 22/22 checksums, Metal 104/105 objects with only __TIME__ differing, CUDA tokens 26/26); release scripts still pass -DSTRATA_GGML_DIR (owner go 11-08)508e6999a

main
854 B15 linesraw
1# cmake/backends/metal.cmake - the Metal project's ggml-base / ggml-cpu (metal/CMakeLists.txt calls it where its ggml block used to be).
2# A macro: it runs in the caller's scope.  The ggml tree comes from strata_ggml_resolve() (cmake/strata_ggml.cmake).
3
4# ggml-base and ggml-cpu of the Metal engine: the forced GGML_* options (no Metal / BLAS backend of ggml) and the ggml subproject
5macro(strata_metal_ggml)
6set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
7set(GGML_STATIC ON CACHE BOOL "" FORCE)
8set(GGML_METAL OFF CACHE BOOL "" FORCE)
9set(GGML_BLAS OFF CACHE BOOL "" FORCE)
10set(GGML_OPENMP OFF CACHE BOOL "" FORCE)
11set(GGML_BACKEND_DL OFF CACHE BOOL "" FORCE)
12set(GGML_BUILD_TESTS OFF CACHE BOOL "" FORCE)
13set(GGML_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
14add_subdirectory(${_strata_ggml_root}/ggml ${CMAKE_BINARY_DIR}/ggml EXCLUDE_FROM_ALL)
15endmacro()