Learn R Programming

pse (version 0.4.7)

machinefile: Convenience for Clustering

Description

Provides a convenience interface for using MPD-style hostfiles to generate cluster objetcs. The hostfile should be written as a text file using the MPD style: one line for each host, which can be followed by a colon and a number indicating the number of processes to be started on that host. An example hostfile for starting three processes on two hosts named avalon and glastonbury would be:

Usage

machinefile(name)

Arguments

name

Filename of the hostfile.

Details

avalon glastonbury:2

Examples

Run this code

	library(parallel)
	cl = makePSOCKcluster(machinefile("mpd.hosts"))
	stopCluster(cl)

Run the code above in your browser using DataLab