Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:advanced_sge [2014/05/27 13:55] – ir | doku:advanced_sge [2015/01/22 09:57] (current) – [Job arrays with multiple task within one SGE task step] ir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | * [[advanced_sge# | ||
- | * [[advanced_sge# | ||
- | ==== Copying back data from a temp. directory after a job is terminated ==== | ||
- | Please refer to [[doku: | ||
- | |||
==== Specifying the maximum runtime (means quicker job execution) / resource reservation ==== | ==== Specifying the maximum runtime (means quicker job execution) / resource reservation ==== | ||
=== The problem === | === The problem === | ||
Line 173: | Line 167: | ||
#$ -N job_array_with_multilple single tasks on one node | #$ -N job_array_with_multilple single tasks on one node | ||
#$ -pe mpich <N> | #$ -pe mpich <N> | ||
- | ### set first and last task_id and stepwidth of array tasks. stepwidth should be identical with the | + | ### set first and last task_id and stepwidth of array tasks. |
+ | ### stepwidth should be identical with the | ||
### number of jobs per node | ### number of jobs per node | ||
#$ -t 1-18:3 | #$ -t 1-18:3 | ||
Line 181: | Line 176: | ||
do | do | ||
TASK=`expr ${SGE_TASK_ID} + $i` | TASK=`expr ${SGE_TASK_ID} + $i` | ||
- | CMD=" | + | CMD=" |
#or | #or | ||
- | # | + | # |
$CMD | $CMD | ||
done | done | ||
+ | wait | ||
</ | </ |