zsh - $SGE_TASK_ID not getting set with qsub array grid job -


with simple zsh script:

#!/bin/zsh  nums=(1 2 3) num=$nums[$sge_task_id] 

$sge_task_id sun-grid engine task id. i'm using qsub submit array of jobs.

i following advised in qsub manpage (http://www.clusterresources.com/torquedocs/commands/qsub.shtml#t) , submitting array job

#script name: job_script.sh qsub job_script.sh -t 1-3 

$sge_task_id not being set array job... have ideas why?

thanks!

try submitting job this:

qsub -t 1-3 job_script.sh 

and see happens.

observe:

qsub -sync y job_script.sh -t 1-3 job 74578 ("job_script.sh") has been submitted job 74578 exited exit code 0. 

vs.

qsub -sync y -t 1-3 job_script.sh job-array 74579.1-3:1 ("job_script.sh") has been submitted job 74579.3 exited exit code 0. job 74579.1 exited exit code 0. job 74579.2 exited exit code 0. 

note, torque (the referenced man page in question) little different sge. sge man page suggests putting options before command. also, sge doesn't "%" syntax limiting max number of simultaneous jobs, mine @ least lets me -tc nnn specify limit (not mentioned in man page, in qsub -help).


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -