Anonymous avatar Anonymous committed 5773c59

Customization for brutus

Comments (0)

Files changed (1)

         self.ret = None
         self.inputfile = ""
         self.outputfile = ""
-        self.native_specification = ""
+        #self.native_specification = ""
         self.exception = None
         self.environment = None
         self.replace_env = False
         jt.remoteCommand = os.path.expanduser(PYGRID)
         jt.args = [job.inputfile]
         jt.joinFiles = True
-        #jt.setNativeSpecification(job.native_specification)
-        #jt.native_specification = job.native_specification
+        jt.nativeSpecification = job.native_specification
         #jt.outputPath = ":" + os.path.expanduser(TEMPDIR)
         #jt.errorPath = ":" + os.path.expanduser(TEMPDIR)
 
     Specialization of generic Job that provides an interface to
     the system at ETH Zurich. This is an LSF system.
     """
-    def __init__(self, f, args, kwlist=None, cleanup=True):
+    def __init__(self, f, args=None, kwlist=None, cleanup=True):
         Job.__init__(self, f, args, kwlist, cleanup)
 
         # -W HH:MM     Wall-clock time required by the job. Can also be expressed in minutes.
         #              The firewall blocks e-mail sent to other addresses.
         self.email_address = None
 
+        # -R 'rusage[mem=XXX]'   Memory in MB
+        self.memory = None
+
     @property
     def native_specification(self):
         """
         define python-style getter
         """
-
         ret = ""
         if self.wall_time_h and self.wall_time_m:
             ret += " -W %02d:%02d" % (self.wall_time_h, self.wall_time_m)
             ret += " -oe %s" % self.oerrfile
         if self.jobname:
             ret += " -J %s" % self.jobname
+        else:
+            ret += " -J %s" % self.name
         if self.wait:
             ret += " -w %s" % self.wait
         if self.email_begin:
             ret += " -N"
         if self.email_address:
             ret += " -u %s" % self.email_address
+        if self.memory:
+            ret += " -R 'rusage[mem=%d]'" % self.memory
 
         return ret
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.