From 1173700b9c12fa7d7ccfd74752a35ec2d7b4552b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 7 Sep 2026 12:11:40 +0200 Subject: [PATCH] examples : print ggml_version and ggml_commit in test-cmake [no ci] (#28538) This commit adds the printing of the ggml version and commit to the test-cmake example. The motivation is just to be able to quickly verify that the correct version of ggml is being used. Example output: ```console test-cmake] llama.cpp version: 0.4.0-dev, build: 10837 (5202104b5) [test-cmake] ggml version: 0.23.0, commit: 5202104b5 [test-cmake] Initializing backend... ... ``` --- examples/test-cmake/test-cmake.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/test-cmake/test-cmake.cpp b/examples/test-cmake/test-cmake.cpp index c5c4765b4..dc1a9ae60 100644 --- a/examples/test-cmake/test-cmake.cpp +++ b/examples/test-cmake/test-cmake.cpp @@ -2,8 +2,9 @@ #include int main(void) { - printf("[test-cmake] version: %s, build: %d (%s)\n", + printf("[test-cmake] llama.cpp version: %s, build: %d (%s)\n", llama_version(), LLAMA_BUILD_NUMBER, LLAMA_BUILD_COMMIT); + printf("[test-cmake] ggml version: %s, commit: %s\n", ggml_version(), ggml_commit()); printf("[test-cmake] Initializing backend...\n"); llama_backend_init(); printf("[test-cmake] Backend initialized.\n");