| 59 | }; |
| 60 | |
| 61 | static 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 | |
| 71 | int main(int argc, char ** argv) { |
| 72 | struct benchmark_params_struct benchmark_params; |