diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-26 20:36:27 -0500 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-26 20:36:27 -0500 |
| commit | f1eb1f41ab81571d23654bb15af655c17152bcd6 (patch) | |
| tree | 326aaa0e84f44184dde924cf9d08d8ac30daaa04 /constant_cycles_kernel.cu | |
| parent | d1576765658fc866bed806cbde969d39cc6a8dd8 (diff) | |
Ensure all benchmarks support --help and cleanup
Diffstat (limited to 'constant_cycles_kernel.cu')
| -rw-r--r-- | constant_cycles_kernel.cu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/constant_cycles_kernel.cu b/constant_cycles_kernel.cu index db92b08..b45ae8c 100644 --- a/constant_cycles_kernel.cu +++ b/constant_cycles_kernel.cu | |||
| @@ -16,7 +16,7 @@ int main(int argc, char **argv) { | |||
| 16 | int res, *__unused; | 16 | int res, *__unused; |
| 17 | struct timespec start, end; | 17 | struct timespec start, end; |
| 18 | 18 | ||
| 19 | if (argc != 2) { | 19 | if (argc != 2 || !strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) { |
| 20 | fprintf(stderr, "Usage: %s <# of millions of iterations, or -1 for infinite>\n", | 20 | fprintf(stderr, "Usage: %s <# of millions of iterations, or -1 for infinite>\n", |
| 21 | argv[0]); | 21 | argv[0]); |
| 22 | return 1; | 22 | return 1; |
