Commit 92c7d235 authored by Christoph Arthofer's avatar Christoph Arthofer
Browse files

changed to Python fsl_sub to support both SLURM and SGE based job submission

parent 3b43ed83
......@@ -1297,7 +1297,7 @@ if __name__ == "__main__":
# job_ids[27] = submitJob(tag+'_'+task_name, log_dir, command=cmd, queue=cpuq,
# export_var=export_var_str['SINGULARITY_BIND'], wait_for=[job_ids[20]])
job_ids[27] = submitJob(cmd, tag + '_' + task_name, log_dir, queue=cpuq, wait_for=[job_ids[20]],
array_task=False, export_var=export_var_str['SINGULARITY_BIND'])
array_task=False, export_var=[export_var_str['SINGULARITY_BIND']])
print('submitted: ' + task_name)
# Nonlinear template construction
......@@ -1423,7 +1423,7 @@ if __name__ == "__main__":
# export_var=export_var_str['SINGULARITY_BIND'], debug=False)
job_ids[28] = submitJob(script_path, tag + '_' + task_name, log_dir, queue=gpuq,
wait_for=list(itemgetter(*[21, 23, 24, 25, 26, 27, 28, 44, 45, 46, 47, 48, 50])(job_ids)),
array_task=True, coprocessor='cuda', export_var=export_var_str['SINGULARITY_BIND'])
array_task=True, coprocessor='cuda', export_var=[export_var_str['SINGULARITY_BIND']])
print('submitted: ' + task_name)
# Averaging warps
......@@ -1794,7 +1794,7 @@ if __name__ == "__main__":
# job_ids[48] = submitJob(tag+'_'+task_name, log_dir, command=cmd, queue=cpuq,
# export_var=export_var_str['SINGULARITY_BIND'], wait_for=[job_ids[43]])
job_ids[48] = submitJob(cmd, tag + '_' + task_name, log_dir, queue=cpuq,
wait_for=[job_ids[43]], array_task=False, export_var=export_var_str['SINGULARITY_BIND'])
wait_for=[job_ids[43]], array_task=False, export_var=[export_var_str['SINGULARITY_BIND']])
print('submitted: ' + task_name)
# Averaging transformed T1 brain masks in template space
......
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