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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -