]> git.djapps.eu Git - pkg/ggml/sources/whisper.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>
Sat, 12 Jul 2025 16:23:56 +0000 (19:23 +0300)
commit5ea5c5876897ef10c2d573df1cfcf085f1d25f5f
tree48c4cc4c0a957cec91025e556b66fa2547da70ec
parent869335f2d58d04010535be9ae23a69a9da12a169
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