I have a script that breaks a data structure into pieces. Pieces are processed using an array of torque jobs and then combined back into a single structure.
The merge operation depends on the filling of the task array. How to make the merge operation wait for the completion of the task array job?
$ qsub --version
Version: 4.1.6
My script looks like this:
qsub -t 1-100 -l nodes=1:ppn=40,walltime=48:00:00,vmem=120G ./job.sh
./merge.sh
I tried:
qsub -t 1-100 -l nodes=1:ppn=40,walltime=48:00:00,vmem=120G -N job1 ./job.sh
qsub -W depend=afterokarray:job1 ./merge.sh
and:
qsub -t 1-100 -l nodes=1:ppn=40,walltime=48:00:00,vmem=120G -N job1 ./job.sh
qsub -hold_jid job1 ./merge.sh
None of them worked. The former led to the error [qsub: illegal -W value], and the latter also led to the error: qsub: script file "job1" cannot be loaded - there is no such file or directory.
source
share