Displaying 3 results from an estimated 3 matches for "startmpicluster".
2015 May 25
0
foreach hangs when using doMPI on Windows with Microsoft MPI
...and all worker processes idle.
I launch my script with mpiexec:
"C:\Program Files\Microsoft MPI\Bin\mpiexec" -n 3 "C:\Program Files\R\R-3.2.0\bin\x64\Rterm.exe" --no-save -q -f "MPI Test.r"
The script is:
library(Rmpi)
library(doMPI)
library(foreach)
cl <- startMPIcluster()
print(cl)
registerDoMPI(cl)
mpi.remote.exec(paste(Sys.info()[['nodename']], Sys.getpid(), mpi.comm.rank(), "of", mpi.comm.size()))
# Hangs at this point
# Main process and worker processes are all idle
ni <- foreach(i=1:10) %dopar% {
paste(Sys.info()[['nodename...
2011 Feb 03
0
R: mpirun .C and R
...e following errors:
Error in { : task 1 failed - "C symbol name "prog1" not in load table"
Calls: %dopar% -> <Anonymous>
eg.r code
----------------------------------------------------------------------------------------------------
library(doMPI)
cl <- startMPIcluster(count=2) #this will be changed later
registerDoMPI(cl)
#the input parameters!
...
#some vecs and matrices for the C program
...
#load the C code
dyn.load("/export/home/example/Runs/eg.so")
Est_Results<-foreach(data_iter = 1:nsamp, .combine="cbind",
.i...
2011 Jun 27
0
how to have R tell me which node is being used in a multi-node cluster
...trying to use a parallel script on a 20 node cluster, 8 processors
per node. Each node has a name, e.g., "vm0000", "vm0001", etc. Within
a foreach loop, I would like R to tell me what node it is actually
running on. How can this be accomplished? Thanks!
require(doMPI)
cl <- startMPIcluster(16)
registerDoMPI(cl)
x <- foreach(i = 1:16) %dopar% {
<some function that writes the node name out to screen or file>
}
closeCluster(cl)
--
Matthew C Keller
Asst. Professor of Psychology
University of Colorado at Boulder
www.matthewckeller.com