Esempio n. 1
0
 def _submit_command(self, app):
     # LSF's `bsub` allows one to submit scripts and binaries with
     # the same syntax, so we do not need to create an auxiliary
     # submission script and can just specify the command on the
     # command-line
     sub_argv, app_argv = app.bsub(self)
     prologue = self.get_prologue_script(app)
     epilogue = self.get_epilogue_script(app)
     if prologue or epilogue:
         return (sh_quote_safe_cmdline(sub_argv),
                 sh_quote_unsafe_cmdline(app_argv))
     else:
         return (sh_quote_unsafe_cmdline(sub_argv + app_argv), '')
Esempio n. 2
0
 def _submit_command(self, app):
     # LSF's `bsub` allows one to submit scripts and binaries with
     # the same syntax, so we do not need to create an auxiliary
     # submission script and can just specify the command on the
     # command-line
     sub_argv, app_argv = app.bsub(self)
     prologue = self.get_prologue_script(app)
     epilogue = self.get_epilogue_script(app)
     if prologue or epilogue:
         return (sh_quote_safe_cmdline(sub_argv),
                 sh_quote_unsafe_cmdline(app_argv))
     else:
         return (sh_quote_unsafe_cmdline(sub_argv + app_argv), '')
Esempio n. 3
0
 def _submit_command(self, app):
     sbatch_argv, app_argv = app.sbatch(self)
     return (sh_quote_safe_cmdline(sbatch_argv),
             sh_quote_unsafe_cmdline(app_argv))
Esempio n. 4
0
 def _submit_command(self, app):
     qsub_argv, app_argv = app.qsub_pbs(self)
     if self.queue is not None:
         qsub_argv += ['-q', ('%s' % self.queue)]
     return (sh_quote_safe_cmdline(qsub_argv),
             'cd "$PBS_O_WORKDIR"; ' + sh_quote_unsafe_cmdline(app_argv))
Esempio n. 5
0
 def _submit_command(self, app):
     sbatch_argv, app_argv = app.sbatch(self)
     return (sh_quote_safe_cmdline(sbatch_argv),
             sh_quote_unsafe_cmdline(app_argv))
Esempio n. 6
0
File: sge.py Progetto: uzh/gc3pie
 def _submit_command(self, app):
     sub_argv, app_argv = app.qsub_sge(self)
     return (sh_quote_safe_cmdline(sub_argv), sh_quote_unsafe_cmdline(app_argv))
Esempio n. 7
0
 def _submit_command(self, app):
     qsub_argv, app_argv = app.qsub_pbs(self)
     if self.queue is not None:
         qsub_argv += ['-q', ('%s' % self.queue)]
     return (sh_quote_safe_cmdline(qsub_argv),
             'cd "$PBS_O_WORKDIR"; ' + sh_quote_unsafe_cmdline(app_argv))
Esempio n. 8
0
File: sge.py Progetto: imcf/gc3pie
 def _submit_command(self, app):
     sub_argv, app_argv = app.qsub_sge(self)
     return (sh_quote_safe_cmdline(sub_argv),
             sh_quote_unsafe_cmdline(app_argv))