Class to contain SST Simulation Configuration variables. More...
#include <config.h>
Public Types | |
enum | Mode_t { UNKNOWN, INIT, RUN, BOTH } |
Type of Run Modes. More... | |
Public Member Functions | |
Config (int my_rank, int world_size) | |
Create a new Config object. | |
int | parseCmdLine (int argc, char *argv[]) |
Parse command-line arguments to update configuration values. | |
int | parseConfigFile (std::string config_string) |
Parse a configuration string to update configuration values. | |
uint32_t | getVerboseLevel () |
Return the current Verbosity level. | |
void | setStopAt (std::string stopAtStr) |
Set the cycle at which to stop the simulation. | |
void | setTimeBase (std::string timeBase) |
Sets the default timebase of the simulation. | |
void | Print () |
Print the current configuration to stdout. | |
Mode_t | setRunMode (std::string mode) |
Set the run-mode. | |
Mode_t | getRunMode () |
void | print () |
Print to stdout the current configuration. | |
std::string | getLibPath (void) const |
Return the library search path. | |
int | getRank () const |
Return the current Parallel Rank. | |
int | getNumRanks () const |
Return the number of parallel ranks in the simulation. | |
Data Fields | |
std::string | debugFile |
Mode_t | runMode |
std::string | sdlfile |
std::string | stopAtCycle |
std::string | heartbeatPeriod |
std::string | timeBase |
std::string | partitioner |
std::string | generator |
std::string | generator_options |
std::string | output_config_graph |
std::string | output_dot |
std::string | output_xml |
std::string | output_json |
std::string | output_directory |
std::string | model_options |
std::string | dump_component_graph_file |
std::string | output_core_prefix |
uint32_t | verbose |
bool | no_env_config |
bool | enable_sig_handling |
Friends | |
class | boost::serialization::access |
Class to contain SST Simulation Configuration variables.
enum SST::Config::Mode_t |
SST::Config::Config | ( | int | my_rank, | |
int | world_size | |||
) |
Create a new Config object.
my_rank | - parallel rank of this instance | |
world_size | - number of parallel ranks in the simulation |
References BOTH, debugFile, dump_component_graph_file, enable_sig_handling, generator, generator_options, heartbeatPeriod, model_options, no_env_config, output_config_graph, output_core_prefix, output_directory, output_dot, output_json, output_xml, partitioner, runMode, sdlfile, stopAtCycle, timeBase, and verbose.
Mode_t SST::Config::setRunMode | ( | std::string | mode | ) | [inline] |
std::string SST::Config::debugFile |
File to which debug information should be written
Referenced by Config(), parseCmdLine(), and print().
std::string SST::Config::dump_component_graph_file |
File to dump component graph
Referenced by Config().
Enable signal handling
Referenced by Config(), parseCmdLine(), and print().
std::string SST::Config::generator |
Generator to use
Referenced by Config(), parseCmdLine(), and print().
std::string SST::Config::generator_options |
std::string SST::Config::heartbeatPeriod |
Sets the heartbeat period for the simulation
Referenced by Config().
std::string SST::Config::model_options |
std::string SST::Config::output_config_graph |
std::string SST::Config::output_core_prefix |
Set the SST::Output prefix for the core
std::string SST::Config::output_directory |
std::string SST::Config::output_dot |
File to dump dot output
Referenced by Config().
std::string SST::Config::output_json |
std::string SST::Config::output_xml |
std::string SST::Config::partitioner |
std::string SST::Config::sdlfile |
Graph generation file
Referenced by Config(), parseCmdLine(), and print().
std::string SST::Config::stopAtCycle |
When to stop the simulation
Referenced by Config(), print(), setStopAt(), and SST::Simulation::setStopAtCycle().
std::string SST::Config::timeBase |
Timebase of simulation
Referenced by Config(), print(), setTimeBase(), and SST::SimulationBase::SimulationBase().
uint32_t SST::Config::verbose |
Verbosity
Referenced by Config(), getVerboseLevel(), and parseCmdLine().