40#include "tce_config.h"
55const std::string
DSCLI_TITLE =
"Design Space Explorer for TTA.";
121 "Design Space Explorer plugin to be used.",
126 "Design Space Explorer plugin to print info about.",
131 "Parameter to the explorer plugin in form 'name=value'.",
136 "Path(s) of the test application(s) to be added into the DSDB.",
141 "ID(s) of the test program path(s) to be removed from the DSDB.",
146 "Starting point configuration ID in the DSDB.",
151 "Print the summary of machine configurations in the DSDB"
153 " Ordering may be one of the following:\n"
154 " I ordering by configuration Id,\n"
155 " P ordering by application path,\n"
156 " C ordering by cycle count,\n"
157 " E ordering by energy estimate.",
162 "Print the pareto sets of machine configurations in the DSDB "
163 "with certain value sets:\n"
164 " Value set may be one of the following:\n"
165 " C cycle counts and number of connections.",
170 "Print the number of machine configurations in the DSDB.",
175 "Write out the ADF and IDF files from the DSDB with given "
181 "List the applications in the DSDB.",
186 "List loadable plugins.",
191 "HDB to use with exploration. If not given 'asic_130nm_1.5V.hdb' "
197 "ADF to add into the DSDB.",
202 "IDF to add into the DSDB, needs also ADF.",
207 "Options to pass to the compiler.",
212 "Set the ADF output filename (use in combination with -w "
213 "or --dump_best).",
""));
217 "Dump the best configuration produced by the executed exploration "
244 std::cout << std::endl
245 <<
"Usage: explore [options] [dsdb_file]"
247 <<
"Example: -e InitialMachineExplorer "
248 <<
"-d data/newApplication "
249 <<
"-u bus_count=5 -u build_idf=true test.dsdb"
252 <<
"DSDB file is required always and new is created if not found."
254 <<
"Plugin name, DSDB and at least one application directory "
256 <<
"in the DSDB are required to run exploration, start "
258 <<
"configuration ID is optional."
260 <<
"Any number of parameters that are passed to the used plugin "
263 <<
"Queries can be carried out to the DSDB."
int RowID
Type definition of row ID in relational databases.
const std::string SWL_PLUGIN_INFO
Long switch string for giving an explorer plugin info.
const std::string SWS_CONFIGURATION_WRITE
Short switch string for writing out configuration files.
const std::string SWS_ADF_FILE
Short switch string for adf file.
const std::string SWS_HDB_FILE
Short switch string for hdb file.
const std::string SWL_TEST_DIR_ADD
Long switch string for adding a application directory.
const std::string SWL_ADF_OUT_FILE
const std::string SWS_PLUGIN_NAME
Short switch string for giving an explorer plugin to be used.
const std::string SWL_PLUGIN_PARAM
Long switch string for giving an explorer plugin to be used.
const std::string SWL_LIST_PLUGINS
Long switch string for listing loadable plugins.
const std::string SWL_IDF_FILE
Long switch string for idf file.
const std::string SWS_TEST_DIR_ADD
Short switch string for adding a application directory.
const std::string SWS_CONFIGURATION_COUNT
Short switch string for number of configurations flag.
const std::string DSCLI_TITLE
Design space explorer title.
const std::string SWL_CONFIGURATION_COUNT
Long switch string for number of configurations flag.
const std::string SWL_CONFIGURATION_WRITE
Long switch string for writing out configuration files.
const std::string SWS_LIST_APPS
Short switch string for listing loadable plugins.
const std::string SWS_CONFIGURATION_SUMMARY
Short switch string for number of configurations flag.
const std::string SWS_PARETO_SET
const std::string SWS_LIST_PLUGINS
Short switch string for listing application paths in the dsdb.
const std::string SWL_DUMP_BEST
const std::string SWL_ADF_FILE
Long switch string for adf file.
const std::string SWL_PLUGIN_NAME
Long switch string for giving an explorer plugin to be used.
const std::string SWL_PARETO_SET
Switch strings for the pareto set flag.
const std::string SWS_COMPILER_OPTIONS
Short switch string of options to pass to compiler.
const std::string SWL_COMPILER_OPTIONS
Long switch string of options to pass to compiler.
const std::string SWS_IDF_FILE
Short switch string for idf file.
const std::string SWS_PLUGIN_PARAM
Short switch string for giving an explorer plugin to be used.
const std::string SWL_HDB_FILE
Long switch string for hdb file.
const std::string SWL_START_ID
Long switch string for giving a start configuration id.
const std::string SWL_TEST_DIR_RM
Long switch string for removing application paths from dsdb.
const std::string SWS_START_ID
Short switch string for giving a start configuration id.
const std::string SWL_CONFIGURATION_SUMMARY
Long switch string for number of configurations flag.
const std::string SWL_LIST_APPS
Long switch string for listing application paths in the dsdb.
const std::string SWS_TEST_DIR_RM
Short switch string for removing application paths from dsdb.
const std::string SWS_PLUGIN_INFO
Short switch string for giving an explorer plugin info.
static std::string TCEVersionString()
virtual int integer(int index=0) const
virtual int listSize() const
virtual bool isFlagOn() const
virtual std::string String(int index=0) const
virtual void printHelp() const
CmdLineOptionParser * findOption(std::string name) const
void addOption(CmdLineOptionParser *opt)
std::string testApplicationDirectory(int index) const
virtual ~ExplorerCmdLineOptions()
std::string pluginInfo() const
int applicationIDToRemoveCount() const
std::string idfFileName() const
RowID startConfiguration() const
bool printApplications() const
bool compilerOptions() const
bool numberOfConfigurations() const
virtual void printVersion() const
RowID applicationIDToRemove(int index) const
std::string summaryOrdering() const
std::string paretoSetValues() const
std::string adfFileName() const
bool hdbFileNames() const
bool writeOutBestConfiguration() const
virtual void printHelp() const
int numberOfConfigurationsToWrite() const
int explorerPluginParameterCount() const
bool writeOutConfiguration() const
bool printPlugins() const
std::string explorerPlugin() const
std::string explorerPluginParameter(int index) const
std::string compilerOptionsString() const
int hdbFileNameCount() const
RowID configurationToWrite(int index) const
int testApplicationDirectoryCount() const
std::string hdbFileName(int index) const
std::string adfOutFileName() const
bool printSummary() const