Skip to content
Prev 112 / 2152 Next

Rmpi working with OpenMPI and PBSPro but snow fails

On Wed, 2009-03-04 at 07:49 -0600, luke at stat.uiowa.edu wrote:
Hi Luke,

Thanks for the quick response.
If I take the following trivial R script:

------------------------------------------------------------------------

library(Rmpi)
library(snow)

cl <- makeCluster()
clusterCall(cl, function() Sys.info()[c("nodename","machine")])
stopCluster(cl)
------------------------------------------------------------------------

and run it as 
------------------------------------------------------------------------
#!/bin/bash
#PBS -q SMP_queue
#PBS -l select=1:ncpus=4:mpiprocs=4
#PBS -l place=scatter:excl


module load apps/R
module load libs/R-mpi

cd $PBS_O_WORKDIR
cat $PBS_NODEFILE

mpiexec RMPISNOW -f snowtest_solo.r
-----------------------------------------------------------------------

all the R processes just sit there spinning rather than doing anything
useful and I have to kill the job.

the suggestion in this mail:
https://stat.ethz.ch/pipermail/r-sig-hpc/2009-January/000069.html

results in the same problem of R spinning. I suspect that there is
something different about my OpenMPI setup that means snow is failing to
set up a master process. So you end up with all four processes as slaves
spinning on a network poll.