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
Next revisionBoth sides next revision
doku:rstat [2015/04/28 12:12] – [Example] irdoku:rstat [2015/05/06 14:45] ssenoner
Line 25: Line 25:
 === Parallel execution === === Parallel execution ===
  
-The R-code may be parallelized in the following form: +In R, the code **berk-rmpi.R** may be parallelized in the following form:
-   * berk-rmpi.R+
 <code> <code>
 # basic example with foreach # basic example with foreach
Line 43: Line 42:
 </code> </code>
  
-On VSC2, a batch job  is submitted by the using the following script:+On VSC2, a batch job  is submitted by using the following script:
 <code> <code>
 #$ -N rstat #$ -N rstat
Line 49: Line 48:
 #$ -pe mpich 16 #$ -pe mpich 16
 #$ -l h_rt=01:00:00 #$ -l h_rt=01:00:00
-echo $NSLOTS + 
-mpirun -machinefile $TMPDIR/machines -np 16 ~/sw/rstat/bin/R CMD BATCH berk-rmpi.R+mpirun -machinefile $TMPDIR/machines -np $NSLOTS /opt/sw/R/current/bin/R CMD BATCH berk-rmpi.R
 </code> </code>
 yielding to an execution time [s] of  yielding to an execution time [s] of 
Line 79: Line 78:
   4.566   0.156   5.750    4.566   0.156   5.750 
 </code> </code>
- 
  • doku/rstat.txt
  • Last modified: 2021/09/29 12:25
  • by goldenberg