[R] loading libraries on MPI cluster
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Nov 23 17:07:57 CET 2006
Michela Cameletti wrote:
> Dear R-users,
> we are using library(snow) for computation on a linux cluster with RMPI.
> We have a problem with clusterEvalQ: after launching clusterEvalQ it seems
> loading the required library on each node but if we type a function
> belonging to the loaded package R doesn't find it.
>
>> library(snow)
>
> # making cluster with 3 nodes
>> cl <- makeCluster(3, type = "MPI")
> Loading required package: Rmpi
> 3 slaves are spawned successfully. 0 failed.
>
> #loading library abind on each node
>> clusterEvalQ(cl,library(abind))
> [[1]]
> [1] "abind" "EMsspir" "mvtnorm" "MASS" "snow" "Rmpi"
> [7] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
> [13] "base"
>
> [[2]]
> [1] "abind" "EMsspir" "mvtnorm" "MASS" "snow" "Rmpi"
> [7] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
> [13] "base"
>
> [[3]]
> [1] "abind" "EMsspir" "mvtnorm" "MASS" "snow" "Rmpi"
> [7] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
> [13] "base"
>
> #searching for function "abind" belonging to library "abind"
>> abind
> Error: object "abind" not found
>
> Is it possible to know which libraries each node has loaded?
clusterEvalQ(cl,library())
You have loaded the ***package*** on the nodes, but not in your session
directly!
Uwe Ligges
> Thank you very much
> best regards
> Michela and Marco
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list