From f1eb1f41ab81571d23654bb15af655c17152bcd6 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 26 Feb 2024 20:36:27 -0500 Subject: Ensure all benchmarks support --help and cleanup --- constant_cycles_kernel.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'constant_cycles_kernel.cu') 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) { int res, *__unused; struct timespec start, end; - if (argc != 2) { + if (argc != 2 || !strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) { fprintf(stderr, "Usage: %s <# of millions of iterations, or -1 for infinite>\n", argv[0]); return 1; -- cgit v1.2.2