diff options
Diffstat (limited to 'src/experiment.cpp')
-rw-r--r-- | src/experiment.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/experiment.cpp b/src/experiment.cpp index 7e5d318..a156322 100644 --- a/src/experiment.cpp +++ b/src/experiment.cpp @@ -49,7 +49,7 @@ Experiment::Experiment() : bytes_per_thread (DEFAULT_BYTES_PER_THREAD), num_threads (DEFAULT_THREADS), bytes_per_test (DEFAULT_BYTES_PER_TEST), - busy_cycles (DEFAULT_BUSY_CYCLES), + loop_length (DEFAULT_LOOPLENGTH), seconds (DEFAULT_SECONDS), iterations (DEFAULT_ITERATIONS), experiments (DEFAULT_EXPERIMENTS), @@ -79,7 +79,7 @@ Experiment::~Experiment() { // -t or --threads number of threads (concurrency and contention) // -i or --iters iterations // -e or --experiments experiments -// -b or --busy amount of cycles processor should remain busy +// -g or --loop cycles to execute for each iteration (latency hiding) // -f or --prefetch prefetch data // -a or --access memory access pattern // random random access pattern @@ -200,14 +200,14 @@ int Experiment::parse_args(int argc, char* argv[]) { error = 1; break; } - } else if (strcasecmp(argv[i], "-b") == 0 - || strcasecmp(argv[i], "--busy") == 0) { + } else if (strcasecmp(argv[i], "-g") == 0 + || strcasecmp(argv[i], "--loop") == 0) { i++; if (i == argc) { error = 1; break; } - this->busy_cycles = Experiment::parse_number(argv[i]); + this->loop_length = Experiment::parse_number(argv[i]); if (this->experiments == 0) { error = 1; break; @@ -345,7 +345,7 @@ int Experiment::parse_args(int argc, char* argv[]) { printf(" [-o|--output] <format> # output format\n"); printf(" [-n|--numa] <placement> # numa placement\n"); printf(" [-s|--seconds] <number> # run each experiment for <number> seconds\n"); - printf(" [-b|--busy] <number> # how much processing cycles each loop should count\n"); + printf(" [-g|--loop] <number> # cycles to execute for each iteration (latency hiding)\n"); printf(" [-f|--prefetch] # prefetch data\n"); printf(" [-x|--strict] # fail rather than adjust options to sensible values\n"); printf("\n"); @@ -655,7 +655,7 @@ void Experiment::print() { printf("bytes_per_thread = %d\n", bytes_per_thread); printf("num_threads = %d\n", num_threads); printf("bytes_per_test = %d\n", bytes_per_test); - printf("busy cycles = %d\n", busy_cycles); + printf("busy cycles = %d\n", loop_length); printf("prefetch = %d\n", prefetch); printf("iterations = %d\n", iterations); printf("experiments = %d\n", experiments); |