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

Function ggml_graph_compute_helper

tests/test-rope.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph * graph, int n_threads) {
116 struct ggml_cplan plan = ggml_graph_plan(graph, n_threads);
117
118 if (plan.work_size > 0) {
119 buf.resize(plan.work_size);
120 plan.work_data = buf.data();
121 }
122
123 ggml_graph_compute(graph, &plan);
124}
125
126int main(int /*argc*/, const char ** /*argv*/) {
127 struct ggml_init_params params = {

Callers 1

mainFunction · 0.70

Calls 4

ggml_graph_planFunction · 0.50
ggml_graph_computeFunction · 0.50
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected