runeverywhere {mspath} | R Documentation |
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.
runeverywhere(channel = "kickStart.R", comm = 0)
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. |
This is just a thin wrapper around master
and slave
.
Terminates the R session at the end.
Do not load the Rmpi
library before invoking this
function. Do set up the MPI environment and launch all the
necessary R processes.
Ross Boylan