Displaying 1 result from an estimated 1 matches for "est_results".
Did you mean:
eat_results
2011 Feb 03
0
R: mpirun .C and R
...-----------------------------
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",
.inorder=TRUE ) %dopar%
{
outs=.C("prog1", all of the args )
do more things
return( some things)
}
dyn.unload("/export/home/example/Runs/eg.so")
closeCluster(cl)...