]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : add version function to get lib version (ggml/1286)
authorDaniel Bevenius <redacted>
Wed, 2 Jul 2025 11:55:32 +0000 (13:55 +0200)
committerGeorgi Gerganov <redacted>
Wed, 2 Jul 2025 17:08:45 +0000 (20:08 +0300)
commitc46944aa25b5560e6195f8cbcbc8947e9a6395c3
treeca118ab22e46c77ecc3448fd4599e3a083dfdba1
parentf3ed38d793fab9f97987dc52d7a41622f2056701
ggml : add version function to get lib version (ggml/1286)

* ggml : add version function to get lib version

This commit adds a function `ggml_version()` to the ggml library that
returns the version of the library as a string.

The motivation for this is that it can be useful to be able to
programmatically check the version of the ggml library being used.

Usage:
```c
printf("GGML version: %s\n", ggml_version());
```
Output:
```console
GGML version: 0.0.2219
```

* ggml : add ggml_commit()

---------

Co-authored-by: Georgi Gerganov <redacted>
ggml/CMakeLists.txt
ggml/include/ggml.h
ggml/src/ggml.c