Skip to content

Conversation

@danbev
Copy link
Member

@danbev danbev commented Jun 27, 2025

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:

printf("GGML version: %s\n", ggml_version());

Output:

GGML version: 0.0.2219

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
```
@slaren
Copy link
Member

slaren commented Jul 1, 2025

If this is extended with a function that returns the commit id, it could be useful for ggml-org/llama.cpp#14368

@ggerganov ggerganov requested a review from slaren July 2, 2025 05:14
@ggerganov ggerganov merged commit 0405219 into ggml-org:master Jul 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants