add Rmpi to snow example
This commit is contained in:
parent
0b9fc2ab1c
commit
a0d1602033
@ -14,7 +14,7 @@ p <- rnorm(123, m = 33)
|
|||||||
|
|
||||||
## Sub script asks for 18 cores, here cluster must
|
## Sub script asks for 18 cores, here cluster must
|
||||||
## be one smaller
|
## be one smaller
|
||||||
CLUSTERSIZE <- mpi.universe.size()-1
|
CLUSTERSIZE <- Rmpi::mpi.universe.size()-1
|
||||||
|
|
||||||
cl <- makeCluster(CLUSTERSIZE, type = "MPI")
|
cl <- makeCluster(CLUSTERSIZE, type = "MPI")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user