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

Function print_usage

examples/benchmark/benchmark-matmult.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61static void print_usage(int /*argc*/, char ** argv, struct benchmark_params_struct params) {
62 fprintf(stderr, "usage: %s [options]\n", argv[0]);
63 fprintf(stderr, "\n");
64 fprintf(stderr, "options:\n");
65 fprintf(stderr, " -h, --help show this help message and exit\n");
66 fprintf(stderr, " -t N, --threads N number of threads to use during computation (default: %d)\n", params.n_threads);
67 fprintf(stderr, " -i N, --iter N number of iterations to use during computation (default: %d)\n", params.n_iterations);
68 fprintf(stderr, "\n");
69}
70
71int main(int argc, char ** argv) {
72 struct benchmark_params_struct benchmark_params;

Callers 1

mainFunction · 0.70

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected