Displaying 2 results from an estimated 2 matches for "clustersetuprngstream".
Did you mean:
clustersetrngstream
2011 Feb 03
1
problem with parLapply from snow
...ackage, asking for ", Nnodes, "nodes \n")
cl <- makeCluster(Nnodes, type="MPI")
on.exit(stopCluster(cl))
#print(do.call("rbind", clusterCall(cl, function(cl) Sys.info()["nodename"])))
#
## uses RSPRNG if there
#
#clusterSetupSPRNG(cl)
clusterSetupRNGstream(cl, seed = rep(123456, 6))
yu <- clusterCall(cl, runif, Nsamples)
yusum <- parLapply(cl, yu, sum)
print(yusum)
yn <- clusterCall(cl, rnorm, Nsamples)
print(yn)
return()
}
This is under R-2.12.1. on a windows Xp machine. This function still runs sa...
2013 Jan 23
3
How to construct a valid seed for l'Ecuyer's method with given .Random.seed?
Dear expeRts,
I struggle with the following problem using snow clusters for parallel computing: I would like to specify l'Ecuyer's random number generator. Base R creates a .Random.seed of length 7, the first value indicating the kind fo random number generator. I would thus like to use the components 2 to 7 as the seed for l'Ecuyer's random number generator.
By doing so, I