Ejemplo n.º 1
0
    def noteEnd(self, test):
        """A test has finished running. """

        numberOfNodesNeeded, r = divmod(max(1, test.np), self.npMax)
        if r: numberOfNodesNeeded += 1
        self.npBusy -= max(
            test.np, numberOfNodesNeeded *
            self.npMax)  # this is necessary when srun exclusive is used.

        if debug():
            log("Finished %s, #total proc used = %d" %
                (test.name, self.npBusy),
                echo=True)

        self.numberTestsRunning = self.npBusy
Ejemplo n.º 2
0
    def noteLaunch(self, test):
        """A test has been launched."""

        self.npBusy += max(test.np, 1)

        if not self.removeSrunStep:
            test.step = self.stepInUse

            utils.addToUsedTotalDic(self.stepUsedDic, self.nodeStepNumDic,
                                    self.npMax, self.stepInUse, test.np)

        if debug():
            log("chaosCompile.py__ Max np= %d. Launched %s with np= %d tests, total proc used = %d" % \
                (self.numberMaxProcessors, test.name, test.np, self.npBusy), echo=True)

        self.numberTestsRunning = self.npBusy
Ejemplo n.º 3
0
    def noteLaunch(self, test):
        """A test has been launched."""

        numberOfNodesNeeded, r = divmod(max(test.np, 1), self.npMax)
        if r: numberOfNodesNeeded += 1
        self.npBusy += max(
            test.np, numberOfNodesNeeded *
            self.npMax)  # this is necessary when srun exclusive is used.

        if debug():
            #log("cray.py__usedDic: %s" % \
            #    (self.stepUsedDic), echo=True)
            log("cray.py__ Max np= %d. Launched %s with np= %d tests, total proc used = %d" % \
                (self.numberMaxProcessors, test.name, test.np, self.npBusy), echo=True)

        self.numberTestsRunning = self.npBusy
Ejemplo n.º 4
0
    def noteEnd(self, test):
        """A test has finished running. """

        self.npBusy -= max(test.np, 1)
        if not self.removeSrunStep:

            self.stepUsedDic = utils.removeFromUsedTotalDic(
                self.stepUsedDic, self.nodeStepNumDic, self.npMax, test.step,
                test.np, self.stepId, self.allNodeList)

        if debug():
            log("Finished %s, #total proc used = %d" % \
                (test.name, self.npBusy), echo=True)

        self.numberTestsRunning = self.npBusy

        # Add to combo log file
        self.catLogFiles(test)
Ejemplo n.º 5
0
 def noteEnd(self, test):
     """A test has finished running. """
     self.npBusy -= max(test.np, 1)
     if debug():
         log("Finished %s, now running %d tests, proc = %d" % \
             (test.name, self.numberTestsRunning, self.npBusy), echo=True)
Ejemplo n.º 6
0
 def noteLaunch(self, test):
     """A test has been launched."""
     self.npBusy += max(test.np, 1)
     if debug():
         log("Launched %s, now running %d tests, proc = %d" % \
             (test.name, self.numberTestsRunning, self.npBusy), echo=True)