Displaying 1 result from an estimated 1 matches for "noderank".
Did you mean:
nodemask
2008 Sep 30
1
prblems changing directory in mpi snow clusters
...a cluster and execute simple commands but for
some reason, I cannot change the working directory in my nodes.
> noclusters<-2
> cl <- makeCluster(noclusters, type = "MPI")
2 slaves are spawned successfully. 0 failed.
> foo<-clusterApply(cl,1:noclusters,function(noderank) {2+2})
> foo
[[1]]
[1] 4
[[2]]
[1] 4
> clusterCall(cl,setwd("C:/"))
Error in checkForRemoteErrors(lapply(cl, recvResult)) :
2 nodes produced errors; first error: variable "C:/" of mode "function"
was not found
>
Any suggestions ?
Thanks in advance,...