]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml : add version function to get lib version (#1286)
authorDaniel Bevenius <redacted>
Wed, 2 Jul 2025 11:55:32 +0000 (13:55 +0200)
committerGitHub <redacted>
Wed, 2 Jul 2025 11:55:32 +0000 (14:55 +0300)
commit0405219965324e11a29b6aadfe22a6d66131978f
tree38d0ece2e4ee8882d749ffc3068bd059b5cdcbeb
parenta2253f34452312d4c3be4f42451591eeaff12467
ggml : add version function to get lib version (#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>
CMakeLists.txt
include/ggml.h
src/ggml.c