R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
Any way to query the setDefaultCluster?
8 messages · Etienne B. Racine, Simon Urbanek, Jonathan Greenberg
To clarify: if I "forget" to store a cluster object:
myfunction <- function()
{
library("parallel")
cl <- makeCluster(2,type="PSOCK")
setDefaultCluster(cl)
return(cl)
}
myfunction()
Is there any way to stop this running cluster short of quitting out of R?
--j
On Sat, Feb 23, 2013 at 2:51 PM, Jonathan Greenberg <jgrn at illinois.edu> wrote:
R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20130223/db1fcfdb/attachment.pl>
This would only work immediately afterwards, right? What about a few pages of code later? Basically: if you start a parallel or snow cluster without preserving the cluster object, it will run with no way to shut it down, right? In other words, is there any easy way to accomplish what snowfall does using parallel and snow? i.e.: sfInit() sfStop() --j
On Sat, Feb 23, 2013 at 3:14 PM, Etienne B. Racine <etiennebr at gmail.com> wrote:
Jonathan, maybe .Last.value ? Etienne 2013/2/23 Jonathan Greenberg <jgrn at illinois.edu>
To clarify: if I "forget" to store a cluster object:
myfunction <- function()
{
library("parallel")
cl <- makeCluster(2,type="PSOCK")
setDefaultCluster(cl)
return(cl)
}
myfunction()
Is there any way to stop this running cluster short of quitting out of R?
--j
On Sat, Feb 23, 2013 at 2:51 PM, Jonathan Greenberg <jgrn at illinois.edu>
wrote:
R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
On Feb 23, 2013, at 3:51 PM, Jonathan Greenberg wrote:
R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)?
parallel:::defaultCluster() Cheers, S
--j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
Simon: That's a REALLY helpful function -- is there a reason its undocumented and hidden from the namespace? Would you consider making it more visible? --j On Sun, Feb 24, 2013 at 7:28 AM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:
On Feb 23, 2013, at 3:51 PM, Jonathan Greenberg wrote:
R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)?
parallel:::defaultCluster() Cheers, S
--j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
On Feb 24, 2013, at 8:42 AM, Jonathan Greenberg wrote:
Simon: That's a REALLY helpful function -- is there a reason its undocumented and hidden from the namespace? Would you consider making it more visible?
You'll have to ask the author ... Cheers, S
--j On Sun, Feb 24, 2013 at 7:28 AM, Simon Urbanek <simon.urbanek at r-project.org> wrote:
On Feb 23, 2013, at 3:51 PM, Jonathan Greenberg wrote:
R-sig-hpc'ers: If I set a parallel cluster object using setDefaultCluster, is there any way to recover that object (basically a "getDefaultCluster" function)?
parallel:::defaultCluster() Cheers, S
--j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20130224/2fb233b0/attachment.pl>