summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2012-08-15 10:38:07 -0400
committerAnthony Gutierrez <atgutier@umich.edu>2012-08-15 10:38:07 -0400
commit5a648f2074caad8aee97e03f27e8eecc527a2cba (patch)
tree5da2ddba53dfcb1d159ebd5486caa792e54ee749 /configs/common/Options.py
parent73e9e923d00c6f5df9e79a6c40ecc159894d2bc5 (diff)
downloadgem5-5a648f2074caad8aee97e03f27e8eecc527a2cba.tar.xz
configs: add option for repeatedly switching back-and-forth between cpu types.
This patch adds a --repeat-switch option that will enable repeat core switching at a user defined period (set with --switch-freq option). currently, a switch can only occur between like CPU types. inorder CPU switching is not supported. *note* this patch simply allows a config that will perform repeat switching, it does not fix drain/switchout functionality. if you run with repeat switching you will hit assertion failures and/or your workload with hang or die.
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index c625ab179..6f7059f26 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -104,11 +104,12 @@ def addCommonOptions(parser):
# CPU Switching - default switch model goes from a checkpoint
# to a timing simple CPU with caches to warm up, then to detailed CPU for
# data measurement
- parser.add_option("-s", "--standard-switch", action="store_true",
- help="switch from timing CPU to Detailed CPU")
- parser.add_option("-w", "--warmup", action="store", type="int",
- help="if -s, then this is the warmup period. else, this is ignored",
- default=5000000000)
+ parser.add_option("--repeat-switch", action="store", type="int",
+ default=None,
+ help="switch back and forth between CPUs with period <N>")
+ parser.add_option("-s", "--standard-switch", action="store", type="int",
+ default=None,
+ help="switch from timing to Detailed CPU after warmup period of <N>")
parser.add_option("-p", "--prog-interval", type="int",
help="CPU Progress Interval")