From 809134a2b151f82c29593e64086393b31bc110b7 Mon Sep 17 00:00:00 2001 From: Dam Sunwoo Date: Tue, 23 Dec 2014 09:31:17 -0500 Subject: config: Add options to take/resume from SimPoint checkpoints More documentation at http://gem5.org/Simpoints Steps to profile, generate, and use SimPoints with gem5: 1. To profile workload and generate SimPoint BBV file, use the following option: --simpoint-profile --simpoint-interval Requires single Atomic CPU and fastmem. is in number of instructions. 2. Generate SimPoint analysis using SimPoint 3.2 from UCSD. (SimPoint 3.2 not included with this flow.) 3. To take gem5 checkpoints based on SimPoint analysis, use the following option: --take-simpoint-checkpoint=,,, and is generated by SimPoint analysis tool from UCSD. SimPoint 3.2 format expected. and are in number of instructions. 4. To resume from gem5 SimPoint checkpoints, use the following option: --restore-simpoint-checkpoint -r --checkpoint-dir is (SimPoint index + 1). E.g., "-r 1" will resume from SimPoint #0. --- configs/common/Options.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configs/common/Options.py') diff --git a/configs/common/Options.py b/configs/common/Options.py index a788af290..cb5ffad2e 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -150,6 +150,11 @@ def addCommonOptions(parser): help="Enable basic block profiling for SimPoints") parser.add_option("--simpoint-interval", type="int", default=10000000, help="SimPoint interval in num of instructions") + parser.add_option("--take-simpoint-checkpoints", action="store", type="string", + help="") + parser.add_option("--restore-simpoint-checkpoint", action="store_true", + help="restore from a simpoint checkpoint taken with " + + "--take-simpoint-checkpoints") # Checkpointing options ###Note that performing checkpointing via python script files will override -- cgit v1.2.3