changeset ca6f1407f8f8 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ca6f1407f8f8
description:
config: add num-work-ids command line option
Adds the parameter --num-work-ids to Options.py and reads the parameter
into the System params in Simulation.py. This parameter enables setting
the number of possible work items to different than 16. Support for this
parameter already exists in src/sim/System.py, so this changeset only
affects the Python config files.
Committed by: Nilay Vaish <[email protected]>
diffstat:
configs/common/Options.py | 2 ++
configs/common/Simulation.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 24a198a46ff0 -r ca6f1407f8f8 configs/common/Options.py
--- a/configs/common/Options.py Thu Apr 10 13:40:15 2014 -0500
+++ b/configs/common/Options.py Thu Apr 10 13:43:33 2014 -0500
@@ -133,6 +133,8 @@
simulate (default: run forever)""")
parser.add_option("--work-item-id", action="store", type="int",
help="the specific work id for exit & checkpointing")
+ parser.add_option("--num-work-ids", action="store", type="int",
+ help="Number of distinct work item types")
parser.add_option("--work-begin-cpu-id-exit", action="store", type="int",
help="exit when work starts on the specified cpu")
parser.add_option("--work-end-exit-count", action="store", type="int",
diff -r 24a198a46ff0 -r ca6f1407f8f8 configs/common/Simulation.py
--- a/configs/common/Simulation.py Thu Apr 10 13:40:15 2014 -0500
+++ b/configs/common/Simulation.py Thu Apr 10 13:43:33 2014 -0500
@@ -93,6 +93,8 @@
def setWorkCountOptions(system, options):
if options.work_item_id != None:
system.work_item_id = options.work_item_id
+ if options.num_work_ids != None:
+ system.num_work_ids = options.num_work_ids
if options.work_begin_cpu_id_exit != None:
system.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit
if options.work_end_exit_count != None:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev