Learn R Programming

pse (version 0.3.4)

machinefile: Convenience for clustering

Description

Provides a convenience interface for using MPD-style hostfiles to generate cluster objetcs.

Usage

machinefile(name)

Arguments

name
Filename of the hostfile.

Details

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:

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