Registry / other / ggml
library0.11.0vcpkgunverified

Tensor library for machine learning

vcpkg install ggml
INSTALL
IMPORT
SIG · GGML
G
ggml
othercppv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ggml/ggml.h
#include <ggml/ggml.h>

Initialize ggml and create a 1D tensor

#include <ggml/ggml.h> #include <stdio.h> int main() { struct ggml_init_params params = { .mem_size = 16*1024*1024, .mem_buffer = NULL }; struct ggml_context* ctx = ggml_init(params); struct ggml_tensor* a = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 4); ggml_set_f32(a, 0, 1.0f); printf("Tensor created\n"); ggml_free(ctx); return 0; }
Debug
Known issues
gotchaggml is a low-level library; memory management is manual.
fix
Always call ggml_free() to avoid memory leaks.
affects: *
Upgrade
Version history
0.11.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

ggml — pip install ggml · libregistry