MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_graph_compute_helper

Function ggml_graph_compute_helper

llama.cpp:749–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747//
748
749static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph * graph, int n_threads) {
750 struct ggml_cplan plan = ggml_graph_plan(graph, n_threads);
751
752 if (plan.work_size > 0) {
753 buf.resize(plan.work_size);
754 plan.work_data = buf.data();
755 }
756
757 ggml_graph_compute(graph, &plan);
758}
759
760//
761// llama helpers

Callers 4

llama_decode_internalFunction · 0.70
llama_set_state_dataFunction · 0.70

Calls 4

ggml_graph_planFunction · 0.70
ggml_graph_computeFunction · 0.70
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected