diff options
| author | Doug Pase <douglas@pase.us> | 2008-03-05 00:00:00 +0000 |
|---|---|---|
| committer | Tim Besard <tim.besard@gmail.com> | 2011-10-27 16:18:30 +0200 |
| commit | a52db2ab61b21fe7721419747b96e1689c9069a0 (patch) | |
| tree | d23d4e442fda7504496ac25fb3f0901ca97a8316 /Experiment.C | |
| parent | 538302b72dcbe0b74acdfe3903a45193c7288d4a (diff) | |
Latest upstream version.
Diffstat (limited to 'Experiment.C')
| -rw-r--r-- | Experiment.C | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Experiment.C b/Experiment.C index 9c73576..75b1cab 100644 --- a/Experiment.C +++ b/Experiment.C @@ -6,7 +6,7 @@ * http://www.opensource.org/licenses/cpl1.0.php * * * * Contributors: * - * Douglas M. pase - initial API and implementation * + * Douglas M. Pase - initial API and implementation * *******************************************************************************/ @@ -147,6 +147,12 @@ Experiment::parse_args(int argc, char* argv[]) if (i == argc) { error = 1; break; } this->stride = - Experiment::parse_number(argv[i]); if (this->stride == 0) { error = 1; break; } + } else if (strcasecmp(argv[i], "stream") == 0) { + this->access_pattern = STREAM; + i++; + if (i == argc) { error = 1; break; } + this->stride = Experiment::parse_number(argv[i]); + if (this->stride == 0) { error = 1; break; } } else { error = 1; break; @@ -221,6 +227,7 @@ Experiment::parse_args(int argc, char* argv[]) printf(" random # all chains are accessed randomly\n"); printf(" forward <stride> # chains are in forward order with constant stride\n"); printf(" reverse <stride> # chains are in reverse order with constant stride\n"); + printf(" stream <stride> # references are calculated rather than read from memory\n"); printf("\n"); printf("Note: <stride> is always a small positive integer.\n"); printf("\n"); @@ -559,6 +566,8 @@ Experiment::access() result = "forward"; } else if (this->access_pattern == STRIDED && this->stride < 0) { result = "reverse"; + } else if (this->access_pattern == STREAM) { + result = "stream"; } return result; |
