MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / allocate_graph

Function allocate_graph

tests/test-alloc.cpp:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static ggml_gallocr_ptr allocate_graph(ggml_cgraph * graph, ggml_tensor * out, ggml_backend_buffer_type_t buft) {
175 ggml_set_output(out);
176 ggml_build_forward_expand(graph, out);
177
178 ggml_gallocr_ptr galloc = ggml_gallocr_ptr(ggml_gallocr_new(buft));
179 bool result = ggml_gallocr_alloc_graph(galloc.get(), graph);
180 GGML_ASSERT(result);
181 return galloc;
182}
183
184//
185// correctness checks for result allocations

Callers 10

test_not_enough_chunksFunction · 0.85
test_fill_leftover_spaceFunction · 0.85
test_view_inplaceFunction · 0.85
test_reuse_and_freeFunction · 0.85
test_merge_free_blockFunction · 0.85
test_reallocationFunction · 0.85

Calls 5

ggml_set_outputFunction · 0.85
ggml_gallocr_newFunction · 0.85
ggml_gallocr_alloc_graphFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected