runeverywhere {mspath}R Documentation

Top Level of Distributed Calculation for Multi-State Path Model

Description

Ordinarily every node in a distributed calculation invokes this function. It determines whether it is running on a master (rank 0) or slave, and invokes the appropriate function. This permits SPMD-style programming despite the difference between the master and slave processes.

Usage

runeverywhere(channel = "kickStart.R", comm = 0)

Arguments

channel The source of commands to execute on the master process. See master for details.
comm The MPI communicator to use. In most cases, the default should suffice.

Details

This is just a thin wrapper around master and slave.

Value

Terminates the R session at the end.

Note

Do not load the Rmpi library before invoking this function. Do set up the MPI environment and launch all the necessary R processes.

Author(s)

Ross Boylan

See Also

master, slave


[Package mspath version 0.9-9 Index]