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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -