LLM inference in C/C++
C++ ggml
examples : print ggml_version and ggml_commit in test-cmake [no ci] (#28538)
Daniel Bevenius1173700b9c12
diff --git a/examples/test-cmake/test-cmake.cpp b/examples/test-cmake/test-cmake.cppindex c5c4765b43..dc1a9ae605 100644--- a/examples/test-cmake/test-cmake.cpp+++ b/examples/test-cmake/test-cmake.cpp@@ -2,8 +2,9 @@#include <cstdio>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");