cluster computing - qsub array job - get number of tasks -
is possible number of tasks submitted array job? $sge_task_id
task number.
for example if submit job
qsub -t 1-4 my_script.sh
i'd 4
.
i don't know of automatic variable that, can think of way via torque (i'm betting same arguments work sge or have corresponding arguments). unfortunately, you'd have manually:
qsub -t 1-4 my_script.sh -v total_tasks=4
then, within job script you'll have environment variable $total_tasks set desired. doesn't give automatically give information need.
Comments
Post a Comment