2

很抱歉问了些琐碎的问题。我正在使用 RMPI 和雪进行集群。调用 makeMPICluster 时没有任何返回。但如果 mpi.spawn.Rslaves() 被调用,它会起作用

# method 1
library(snow)

library(Rmpi)

nclus=3

# no response
cl <-makeMPIcluster(nclus)

# method 2
library(Rmpi)
mpi.spawn.Rslaves()

4 slaves are spawned successfully. 0 failed.
master (rank 0, comm 1) of size 5 is running on:  
slave1 (rank 1, comm 1) of size 5 is running on:  
slave2 (rank 2, comm 1) of size 5 is running on: 
slave3 (rank 3, comm 1) of size 5 is running on: 
slave4 (rank 4, comm 1) of size 5 is running on: 
4

0 回答 0