def __init__(self, cfgParser):
     self.maxTimeForBenchmark = cfgParser.getint("GeneralParameters", "maxTimeForBenchmark")
     self.benchmarkCheckoutPath = os.path.join(CfgParserFactory.get_root_dir(), r"%s" % (cfgParser.get("GeneralParameters", "benchmarkCheckoutPath")))
     self.checkoutPath = os.path.join(CfgParserFactory.get_root_dir(), r"%s" % (cfgParser.get("GeneralParameters", "checkoutPath")))
     self.buildLog = os.path.join(CfgParserFactory.get_root_dir(), r"%s" % (cfgParser.get("GeneralParameters", "buildLog")))
     self.slnPath = os.path.join(CfgParserFactory.get_root_dir(), r"%s" % (cfgParser.get("GeneralParameters", "slnPath")))
     self.binDir = os.path.join(CfgParserFactory.get_root_dir(), r"%s" % (cfgParser.get("GeneralParameters", "binDir")))
Exemple #2
0
 def __init__(self, cfgParser):
     self.maxTimeForBenchmark = cfgParser.getint("GeneralParameters",
                                                 "maxTimeForBenchmark")
     self.benchmarkCheckoutPath = os.path.join(
         CfgParserFactory.get_root_dir(), r"%s" %
         (cfgParser.get("GeneralParameters", "benchmarkCheckoutPath")))
     self.checkoutPath = os.path.join(
         CfgParserFactory.get_root_dir(),
         r"%s" % (cfgParser.get("GeneralParameters", "checkoutPath")))
     self.buildLog = os.path.join(
         CfgParserFactory.get_root_dir(),
         r"%s" % (cfgParser.get("GeneralParameters", "buildLog")))
     self.slnPath = os.path.join(
         CfgParserFactory.get_root_dir(),
         r"%s" % (cfgParser.get("GeneralParameters", "slnPath")))
     self.binDir = os.path.join(
         CfgParserFactory.get_root_dir(),
         r"%s" % (cfgParser.get("GeneralParameters", "binDir")))
    def __init__(self, experimentName, cfgName, reportParameters):
        self.cfgName = cfgName
        self.reportParameters = reportParameters
        self.currentLogs = os.path.join(CfgParserFactory.get_root_dir(), self.reportParameters.logFolder)
        self.logFolder = r"%s%s_%s_%s" % (self.currentLogs,
                                          experimentName,
                                          os.path.basename(cfgName), GetTimeStamp())

        self.logFolder = self.logFolder.replace(" ", "_")
    def __init__(self, experimentName, cfgName, reportParameters):
        self.cfgName = cfgName
        self.reportParameters = reportParameters
        self.currentLogs = os.path.join(CfgParserFactory.get_root_dir(),
                                        self.reportParameters.logFolder)
        self.logFolder = r"%s%s_%s_%s" % (self.currentLogs, experimentName,
                                          os.path.basename(cfgName),
                                          GetTimeStamp())

        self.logFolder = self.logFolder.replace(" ", "_")
def NightExperiment(testRunner):
    cfgParser = CfgParserFactory.createCfgParser()
    referenceLogs = cfgParser.get("ReportParameters", "ReferenceLogs")

    exp_HPWL = Experiment_HPWL()
    chk_HPWL_IWLS = Checker(exp_HPWL, referenceLogs + r"/HPWL/IWLS")

    exp_HPWL.name = "ISPD04 HPWL Experiment"
    exp_HPWL.SetConfig("hpwl_ispd04.cfg")
    exp_HPWL.SetBenchmarksList("ISPD04.list")
    chk_HPWL_ISPD = Checker(exp_HPWL, referenceLogs + r"/HPWL/ISPD")

    chk_LR = Checker(Experiment_LR(), referenceLogs + r"/LR")
    chk_BUF = Checker(Experiment_New_Buffering(),
                      referenceLogs + r"/New_Buffering/IWLS")
    chk_HDP = Checker(Experiment_HippocrateDP(),
                      referenceLogs + r"/HippocrateDP")

    exp_W = Experiment_Weighting()
    chk_SGW = Checker(exp_W, referenceLogs + r"/Weighting/SensitivityGuided")

    exp_W.name = "APlace weighting experiment"
    exp_W.SetConfig("APlace_weighting.cfg")
    chk_APW = Checker(exp_W, referenceLogs + r"/Weighting/SensitivityGuided")

    testRunner.Append(chk_BUF)
    testRunner.AddExperimentToGroup(chk_SGW)
    testRunner.AddExperimentToGroup(chk_APW)
    testRunner.Append(chk_HPWL_IWLS)
    testRunner.Append(chk_HPWL_ISPD)
    testRunner.Append(chk_LR)
    testRunner.Append(chk_HDP)

    try:
        testRunner.Run()

    except Exception:
        import traceback

        logger = Logger()
        logger.Log("exception: %s" % (traceback.format_exc()))
def NightExperiment(testRunner):
    cfgParser = CfgParserFactory.createCfgParser()
    referenceLogs = cfgParser.get("ReportParameters", "ReferenceLogs")

    exp_HPWL = Experiment_HPWL()
    chk_HPWL_IWLS = Checker(exp_HPWL, referenceLogs + r"/HPWL/IWLS")

    exp_HPWL.name = "ISPD04 HPWL Experiment"
    exp_HPWL.SetConfig("hpwl_ispd04.cfg")
    exp_HPWL.SetBenchmarksList("ISPD04.list")
    chk_HPWL_ISPD = Checker(exp_HPWL, referenceLogs + r"/HPWL/ISPD")

    chk_LR = Checker(Experiment_LR(), referenceLogs + r"/LR")
    chk_BUF = Checker(Experiment_New_Buffering(), referenceLogs + r"/New_Buffering/IWLS")
    chk_HDP = Checker(Experiment_HippocrateDP(), referenceLogs + r"/HippocrateDP")

    exp_W = Experiment_Weighting()
    chk_SGW = Checker(exp_W, referenceLogs + r"/Weighting/SensitivityGuided")

    exp_W.name = "APlace weighting experiment"
    exp_W.SetConfig("APlace_weighting.cfg")
    chk_APW = Checker(exp_W, referenceLogs + r"/Weighting/SensitivityGuided")

    testRunner.Append(chk_BUF)
    testRunner.AddExperimentToGroup(chk_SGW)
    testRunner.AddExperimentToGroup(chk_APW)
    testRunner.Append(chk_HPWL_IWLS)
    testRunner.Append(chk_HPWL_ISPD)
    testRunner.Append(chk_LR)
    testRunner.Append(chk_HDP)

    try:
        testRunner.Run()

    except Exception:
        import traceback

        logger = Logger()
        logger.Log("exception: %s" % (traceback.format_exc()))
 def SetBenchmarksList(self, benchmarks):
     self.benchmarks = os.path.join(
         CfgParserFactory.get_root_dir(),
         self.cfgParser.get("GeneralParameters", "benchmarkLists"),
         benchmarks)
 def SetBenchmarksList(self, benchmarks):
     self.benchmarks = os.path.join(CfgParserFactory.get_root_dir(), self.cfgParser.get("GeneralParameters", "benchmarkLists"), benchmarks)
 def parse_benchmarks_list(self, benchmark_list):
     benchmark_list = os.path.join(CfgParserFactory.get_root_dir(),
                                   self.cfgParser.get("GeneralParameters", "benchmarkLists"), benchmark_list)
     benchmarks = ExperimentLauncher.PrepareBenchmarks(benchmark_list)
     return benchmarks
 def __init__(self):
     self.cfgParser = CfgParserFactory.createCfgParser()
     self.referenceLogs = os.path.join(CfgParserFactory.get_root_dir(),
                                       self.cfgParser.get("ReportParameters", "ReferenceLogs"))