File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1919using namespace OIIO ;
2020
2121
22- static int iterations = 0 ; // 1000000;
2322static int ntrials = 5 ;
2423
2524
@@ -562,9 +561,9 @@ getargs(int argc, char* argv[])
562561 " image_span_test -- unit test and benchmarks for OpenImageIO/image_span.h\n " OIIO_INTRO_STRING)
563562 .usage (" image_span_test [options]" );
564563
565- ap.arg (" --iterations %d" , &iterations)
566- .help (Strutil::fmt::format (" Number of iterations (default: {})" ,
567- iterations));
564+ // ap.arg("--iterations %d", &iterations)
565+ // .help(Strutil::fmt::format("Number of iterations (default: {})",
566+ // iterations));
568567 ap.arg (" --trials %d" , &ntrials).help (" Number of trials" );
569568
570569 ap.parse_args (argc, (const char **)argv);
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ getargs(int argc, char* argv[])
4343 OIIO_INTRO_STRING)
4444 .usage (" simd_test [options]" );
4545
46- ap.arg (" --iterations %d" , &iterations)
46+ ap.arg (" --iters %d" , &iterations)
4747 .help (Strutil::fmt::format (" Number of iterations (default: {})" , iterations));
48+ ap.arg (" --iterations %d" , &iterations)
49+ .hidden (); // obsolete synonym for --iters
4850 ap.arg (" --trials %d" , &ntrials)
4951 .help (" Number of trials" );
5052
You can’t perform that action at this time.
0 commit comments