Skip to content
Snippets Groups Projects
Commit 4379f665 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix sge script generation

parent 038f9434
Branches
Tags
1 merge request!23WIP: Feature/use cmake
Pipeline #37091 canceled
......@@ -281,6 +281,7 @@ class _code(_base):
nb_threads_per_process = nb_threads_per_process)
os.chdir(self.work_dir)
qsub_atoms = ['qsub']
if not no_submit:
if len(job_name_list) >= 1:
qsub_atoms += ['-hold_jid', job_name_list[-1]]
subprocess.check_call(qsub_atoms + [qsub_script_name])
......@@ -584,7 +585,7 @@ class _code(_base):
if not type(out_file) == type(None):
script_file.write('#$ -o ' + out_file + '\n')
if not type(self.host_info['environment']) == type(None):
envprocs = self.host_info['deltanprocs'] * int(math.ceil((nprocesses *1.0/ self.host_info['deltanprocs'])))
envprocs = nb_threads_per_process * nprocesses
script_file.write('#$ -pe {0} {1}\n'.format(
self.host_info['environment'],
envprocs))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment