Go to the documentation of this file.
40 #include "tce_config.h"
55 const 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."
std::string adfOutFileName() const
std::string adfFileName() const
const std::string SWL_PLUGIN_PARAM
Long switch string for giving an explorer plugin to be used.
bool hdbFileNames() const
bool numberOfConfigurations() const
const std::string SWL_CONFIGURATION_SUMMARY
Long switch string for number of configurations flag.
std::string paretoSetValues() const
virtual void printHelp() const
int applicationIDToRemoveCount() const
std::string idfFileName() const
const std::string SWL_IDF_FILE
Long switch string for idf file.
const std::string SWS_COMPILER_OPTIONS
Short switch string of options to pass to compiler.
const std::string SWL_CONFIGURATION_COUNT
Long switch string for number of configurations flag.
virtual ~ExplorerCmdLineOptions()
const std::string SWS_HDB_FILE
Short switch string for hdb file.
int RowID
Type definition of row ID in relational databases.
std::string explorerPluginParameter(int index) const
const std::string SWL_LIST_APPS
Long switch string for listing application paths in the dsdb.
std::string explorerPlugin() const
int testApplicationDirectoryCount() const
RowID applicationIDToRemove(int index) const
std::string testApplicationDirectory(int index) const
const std::string SWS_CONFIGURATION_WRITE
Short switch string for writing out configuration files.
virtual bool isFlagOn() const
const std::string SWL_PLUGIN_NAME
Long switch string for giving an explorer plugin to be used.
int hdbFileNameCount() const
const std::string SWL_ADF_OUT_FILE
const std::string SWL_DUMP_BEST
const std::string SWL_TEST_DIR_ADD
Long switch string for adding a application directory.
const std::string SWS_TEST_DIR_RM
Short switch string for removing application paths from dsdb.
const std::string SWL_TEST_DIR_RM
Long switch string for removing application paths from dsdb.
const std::string SWL_PARETO_SET
Switch strings for the pareto set flag.
RowID configurationToWrite(int index) const
const std::string SWS_LIST_PLUGINS
Short switch string for listing application paths in the dsdb.
void addOption(CmdLineOptionParser *opt)
const std::string SWL_PLUGIN_INFO
Long switch string for giving an explorer plugin info.
virtual int listSize() const
bool writeOutConfiguration() const
const std::string SWS_CONFIGURATION_COUNT
Short switch string for number of configurations flag.
bool compilerOptions() const
const std::string SWS_LIST_APPS
Short switch string for listing loadable plugins.
bool printApplications() const
std::string compilerOptionsString() const
bool writeOutBestConfiguration() const
virtual void printHelp() const
const std::string SWS_PLUGIN_NAME
Short switch string for giving an explorer plugin to be used.
const std::string SWS_TEST_DIR_ADD
Short switch string for adding a application directory.
const std::string SWL_HDB_FILE
Long switch string for hdb file.
const std::string SWS_PARETO_SET
const std::string SWL_ADF_FILE
Long switch string for adf file.
virtual std::string String(int index=0) const
const std::string SWS_CONFIGURATION_SUMMARY
Short switch string for number of configurations flag.
const std::string SWS_PLUGIN_PARAM
Short switch string for giving an explorer plugin to be used.
bool printSummary() const
const std::string SWL_COMPILER_OPTIONS
Long switch string of options to pass to compiler.
const std::string SWS_PLUGIN_INFO
Short switch string for giving an explorer plugin info.
const std::string SWS_ADF_FILE
Short switch string for adf file.
const std::string SWL_LIST_PLUGINS
Long switch string for listing loadable plugins.
bool printPlugins() const
std::string pluginInfo() const
RowID startConfiguration() const
const std::string DSCLI_TITLE
Design space explorer title.
virtual int integer(int index=0) const
std::string hdbFileName(int index) const
CmdLineOptionParser * findOption(std::string name) const
static std::string TCEVersionString()
int explorerPluginParameterCount() const
int numberOfConfigurationsToWrite() const
const std::string SWS_START_ID
Short switch string for giving a start configuration id.
std::string summaryOrdering() const
const std::string SWL_CONFIGURATION_WRITE
Long switch string for writing out configuration files.
const std::string SWL_START_ID
Long switch string for giving a start configuration id.
const std::string SWS_IDF_FILE
Short switch string for idf file.
virtual void printVersion() const