From e34073e170e5f60c84191f4902a48749afc5084e Mon Sep 17 00:00:00 2001 From: Robert Karl Date: Mon, 19 Oct 2026 15:44:09 -0700 Subject: [PATCH] make test: engine_test is built into build-frontend/bin; README: offline clone, dirty submodule after configure, fresh-clone timings on the A6000 VM A fresh clone on the VM (2026-10-19) built in 20.6 min with the README's commands as written, but `make test` failed with 'build-frontend/engine_test: No such file or directory': the frontend target sets CMAKE_RUNTIME_OUTPUT_DIRECTORY to build-frontend/bin and the test target looked one level up. It passed on the Mac only because a stale build-frontend/ there still had the old binary at the root. Co-Authored-By: Claude Fable 5.1 --- .gitignore | 2 +- Makefile | 2 +- README.md | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d4df56e..415771f 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,7 @@ __pycache__/ *.occ1 td.log -# created by setup.py on the user's machine +# build directories and a virtualenv, if one is made for tools/ /.venv/ /build/ /models/ diff --git a/Makefile b/Makefile index 7f23910..3c1ac37 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ frontend: # and curl; no GPU and no model. Runs in the CUDA-free build directory, so it works on the build box and on a laptop. test: frontend cmake --build $(BUILD_DIR)-frontend -j $(JOBS) --target engine_test - $(BUILD_DIR)-frontend/engine_test frontend/tests/fake-engine.py + $(BUILD_DIR)-frontend/bin/engine_test frontend/tests/fake-engine.py frontend/tests/e2e.sh $(BUILD_DIR)-frontend/bin/unbiased-strata clean: diff --git a/README.md b/README.md index ee6f32b..390c691 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ make build # build/bin/{strata,strata-poly,libstrata_k make test # the front end against a fake engine; no GPU, no model ``` +The two `git` lines are the only ones that reach the network. For a box without one, run them on a machine that has +it and copy the tree over (`rsync -a UnbiasedStrata/ box:UnbiasedStrata/`; about 700 MB with `.git`), then `make build` +there; that is how the A6000 VM below was done (2026-10-19, fresh clone: 5 s clone, 27 s submodule, 20.6 min `make build` +at the default four archs on 12 cores and CUDA 12.4, 9 s `make test`). Configuring applies `patches/` to the submodule +in place, so `git status` shows `third_party/llama.cpp` modified from then on; that is expected. + `make build` configures once and builds only the four targets above, not upstream's `all`. Options, as `make` variables: