-----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Monday, November 09, 2009 10:32 AM To: Beckmann, Brad Subject: [PATCH 17 of 31] m5: Added option to take a checkpoint at the end ofsimulation
# HG changeset patch # User Brad Beckmann <[email protected]> # Date 1257791383 28800 # Node ID 0d5dc45988a3b12e81ea8707203722bf4a24aab0 # Parent 948a0ecb5be01d7ea98f367861e6345de3d07a11 m5: Added option to take a checkpoint at the end of simulation diff -r 948a0ecb5be0 -r 0d5dc45988a3 configs/common/Options.py --- a/configs/common/Options.py Mon Nov 09 10:29:43 2009 -0800 +++ b/configs/common/Options.py Mon Nov 09 10:29:43 2009 -0800 @@ -53,6 +53,9 @@ help="Place all checkpoints in this absolute directory") parser.add_option("-r", "--checkpoint-restore", action="store", type="int", help="restore from checkpoint <N>") +parser.add_option("--checkpoint-at-end", action="store_true", + help="take a checkpoint at end of run") + # CPU Switching - default switch model goes from a checkpoint # to a timing simple CPU with caches to warm up, then to detailed CPU for diff -r 948a0ecb5be0 -r 0d5dc45988a3 configs/common/Simulation.py --- a/configs/common/Simulation.py Mon Nov 09 10:29:43 2009 -0800 +++ b/configs/common/Simulation.py Mon Nov 09 10:29:43 2009 -0800 @@ -374,3 +374,6 @@ exit_cause = exit_event.getCause() print 'Exiting @ cycle %i because %s' % (m5.curTick(), exit_cause) + if options.checkpoint_at_end: + m5.checkpoint(root, joinpath(cptdir, "cpt.%d")) + _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
