Basic PBS question
Since you are running in batch on a cluster, I would recommend looking at package pbdDEMO and reading its vignette. George
On 11/16/14 1:48 PM, Brian Smith wrote:
Hi,
I am trying to get started on our Moab cluster. My pbs script looks like:
======= test.pbs ============
#!/bin/sh
#PBS -N job_name
#PBS -l nodes=1:ppn=3
#PBS -q debugq
module load R
cd $PBS_O_WORKDIR
mpirun -rmk pbs R --slave CMD BATCH ./test.r
======== test.r ============
print('hello world')
To submit my job, I use:
msub test.pbs
When I execute this, the .Rout file contains 'hello world' and everything
looks ok. However, how can I get each processor to write out something like:
'hello world from 1'
'hello world from 2'
'hello world from 3'
How can I get the processor number as an input to the r script?
many thanks!
[[alternative HTML version deleted]]
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc