machinefile: Convenience for Clustering

Description Usage Arguments Details Examples

View source: R/cluster.R

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

1

Arguments

name

Filename of the hostfile.

Details

avalon glastonbury:2

Examples

1
2
3
4
5
6
## Not run: 
	library(parallel)
	cl = makePSOCKcluster(machinefile("mpd.hosts"))
	stopCluster(cl)

## End(Not run)

pse documentation built on May 2, 2019, 12:56 a.m.