Difference between revisions of "Sniper configuration"

From Sniper
Jump to navigation Jump to search
 
Line 3: Line 3:
 
* <code>-c configfile</code>: includes the configfile configuration file. If no <code>-c</code> option is used, <code>gainestown</code> is automatically assumed which models a Nehalem-like system. <code>configfile</code> can be either an existing filename in the current path (e.g. <code>-c ./myconf.cfg</code>), or it can be the name of a predefined config file in <code>sniper/config</code> without its <code>.cfg</code> extension (e.g. <code>-c gainestown</code> to include <code>sniper/config/gainestown.cfg</code>)
 
* <code>-c configfile</code>: includes the configfile configuration file. If no <code>-c</code> option is used, <code>gainestown</code> is automatically assumed which models a Nehalem-like system. <code>configfile</code> can be either an existing filename in the current path (e.g. <code>-c ./myconf.cfg</code>), or it can be the name of a predefined config file in <code>sniper/config</code> without its <code>.cfg</code> extension (e.g. <code>-c gainestown</code> to include <code>sniper/config/gainestown.cfg</code>)
 
* <code>-g --section/parameter=value</code>: set a single parameter value (e.g. <code>--perf_model/core/frequency=2.66</code>).
 
* <code>-g --section/parameter=value</code>: set a single parameter value (e.g. <code>--perf_model/core/frequency=2.66</code>).
 +
 +
At the start of each simulation, a file <code>sim.cfg</code> is written which contains the complete configuration details used in this run.

Latest revision as of 11:51, 27 March 2012

Sniper is configured using command-line parameters and/or configuration files. The default configuration is stored in sniper/config/base.cfg. The run-sniper script accepts the -c configfile and -g configsetting commandline parameters to modify this. Configuration files or parameters are evaluated from left to right on the commandline, newer values override older ones.

  • -c configfile: includes the configfile configuration file. If no -c option is used, gainestown is automatically assumed which models a Nehalem-like system. configfile can be either an existing filename in the current path (e.g. -c ./myconf.cfg), or it can be the name of a predefined config file in sniper/config without its .cfg extension (e.g. -c gainestown to include sniper/config/gainestown.cfg)
  • -g --section/parameter=value: set a single parameter value (e.g. --perf_model/core/frequency=2.66).

At the start of each simulation, a file sim.cfg is written which contains the complete configuration details used in this run.