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

Function ggml_graph_compute_perf_stats_node_gpu

ggml.c:16612–16619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16610 node->perf_time_us += time_us_cur;
16611}
16612static void ggml_graph_compute_perf_stats_node_gpu(struct ggml_tensor * node, const struct ggml_compute_state_shared * st) {
16613 int64_t cycles_cur = ggml_perf_cycles() - st->perf_node_start_cycles;
16614 int64_t time_us_cur = ggml_perf_time_us() - st->perf_node_start_time_us;
16615
16616 node->perf_runs+=2;
16617 node->perf_cycles += cycles_cur;
16618 node->perf_time_us += time_us_cur;
16619}
16620
16621
16622static int ggml_get_n_tasks(struct ggml_tensor * node, int n_threads) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected