Re: [R] snow, stopping cluster

From: Luke Tierney <luke_at_stat.uiowa.edu>
Date: Thu, 27 Mar 2008 10:33:58 -0500 (CDT)

Not at present. The next release should include something along these lines.

luke

On Thu, 27 Mar 2008, Markus Schmidberger wrote:

> Hello,
>
> is there any function in the package snow to check for a really running
> cluster?
> The function checkCluster only checks the variable cl. And the variable is
> still available after stopping the cluster!
> ( a simple solution would be deleting the cluster variable cl in the function
> stopCluster)
>
>> library(snow)
>> cl <- makeCluster(5)
> 5 slaves are spawned successfully. 0 failed.
>> clusterApply(cl, 1:2, get("+"), 3)
> [[1]]
> [1] 4
>
> [[2]]
> [1] 5
>
>> stopCluster(c1)
> [1] 1
>> clusterApply(cl, 1:2, get("+"), 3)
> Fehler in mpi.probe(source, tag, comm, status) :
> MPI_Error_string: invalid communicator
>
>
>> sessionInfo()
> R version 2.6.0 (2007-10-03)
> x86_64-unknown-linux-gnu
>
> locale:
> LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] tools stats graphics grDevices utils datasets methods [8]
> base
> other attached packages:
> [1] affyPara_0.99.2 affy_1.16.0 preprocessCore_1.0.0
> [4] affyio_1.6.1 Biobase_1.16.1 Rmpi_0.5-5 [7]
> snow_0.2-9
> loaded via a namespace (and not attached):
> [1] rcompgen_0.1-15
>
>
> Best
> Markus
>
>

-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke_at_stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

______________________________________________
R-help_at_r-project.org 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.
Received on Thu 27 Mar 2008 - 15:41:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 27 Mar 2008 - 16:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive