Commit 3c823c0f authored by Manuel Günther's avatar Manuel Günther

Added the novel 'io_big' flag (when requiring fast input/output) to the qsub function.

parent d49119d2
...@@ -50,7 +50,7 @@ def makedirs_safe(fulldir): ...@@ -50,7 +50,7 @@ def makedirs_safe(fulldir):
def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='', def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='',
stderr='', env=[], array=None, context='grid', hostname=None, stderr='', env=[], array=None, context='grid', hostname=None,
mem=None, memfree=None, hvmem=None, pe_opt=None): mem=None, memfree=None, hvmem=None, pe_opt=None, io_big=False):
"""Submits a shell job to a given grid queue """Submits a shell job to a given grid queue
Keyword parameters: Keyword parameters:
...@@ -132,6 +132,10 @@ def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='', ...@@ -132,6 +132,10 @@ def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='',
pe_opt pe_opt
If set, add a -pe option when launching a job (for instance pe_exclusive* 1-) If set, add a -pe option when launching a job (for instance pe_exclusive* 1-)
io_big
If set to true, the io_big flag will be set.
Use this flag if your process will need a lot of Input/Output operations.
Returns the job id assigned to this job (integer) Returns the job id assigned to this job (integer)
""" """
...@@ -147,6 +151,8 @@ def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='', ...@@ -147,6 +151,8 @@ def qsub(command, queue=None, cwd=True, name=None, deps=[], stdout='',
if memfree: scmd += ['-l', 'mem_free=%s' % memfree] if memfree: scmd += ['-l', 'mem_free=%s' % memfree]
if hvmem: scmd += ['-l', 'h_vmem=%s' % hvmem] if hvmem: scmd += ['-l', 'h_vmem=%s' % hvmem]
if io_big: scmd += ['-l', 'io_big']
if hostname: scmd += ['-l', 'hostname=%s' % hostname] if hostname: scmd += ['-l', 'hostname=%s' % hostname]
if pe_opt: scmd += ['-pe'] + pe_opt.split() if pe_opt: scmd += ['-pe'] + pe_opt.split()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment