Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doku:advanced_sge [2014/05/28 08:52] irdoku:advanced_sge [2015/01/22 09:57] (current) – [Job arrays with multiple task within one SGE task step] ir
Line 167: 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 175: Line 176:
 do do
         TASK=`expr ${SGE_TASK_ID} + $i`         TASK=`expr ${SGE_TASK_ID} + $i`
-        CMD="run file_$TASK"+        CMD="run file_$TASK &"
         #or          #or 
-        #CMD="mpirun -np $SLOTS ./a.out $TASK"+        #CMD="mpirun -np $SLOTS ./a.out $TASK &"
         $CMD           $CMD  
 done done
 +wait
  
 </code> </code>
  • doku/advanced_sge.1401267172.txt.gz
  • Last modified: 2014/05/28 08:52
  • by ir