ggml now comes from third_party/llama.cpp, the commit upstream pins, instead of a FetchContent clone at configure time; the configure stops with the submodule command if the checkout is missing. patches/*.patch are applied to the submodule at configure time, idempotently (checked in reverse first); the one patch is the Qwen3-Coder any-argument-order parser fix carried from UnbiasedStrata 1. A second add_subdirectory builds llama.cpp's llama, common, cpp-httplib and mtmd for the coming C++ front end with every download switch off. Makefile: make build configures once and builds strata, strata-poly, strata_kq, llama-common and mtmd into build/bin for CUDA archs 61;75;86;89 (SM60 flag added for 61), finds nvcc on PATH or in /usr/local/cuda/bin, and probes for the newest GCC nvcc accepts, passing it as the C, C++ and CUDA host compiler so one libstdc++ is linked (a GCC 14 / GCC 13 mix failed to link strata on __cxa_call_terminate). PLAN.md and UPSTREAM.md added. Verified: a fresh clone and 'git submodule update --init' on a networked box checks out the shallow pin in 37 s. On VM 220 (Debian 13, GCC 13/14, CUDA 12.4, no outbound internet) 'unshare -rn make build JOBS=6' inside a network namespace with no interfaces built strata, strata-poly and libstrata_kq.so for 61;75;86;89 in 24 min with zero network errors in the log; strata --version prints 0.1.45.
5 lines
131 B
Plaintext
5 lines
131 B
Plaintext
[submodule "third_party/llama.cpp"]
|
|
path = third_party/llama.cpp
|
|
url = https://github.com/ggml-org/llama.cpp.git
|
|
shallow = true
|