Tutorial 4 is all about two new pbdR
packages,
pbdCS
and pbdZMQ
, on windows system.
The simple four steps are given in next with very brief explanations.
Step 0: Start a windows command prompt by typing
cmd.exe
to "Start -> Search programs and files -> cmd.exe".Step 1: Set path to
R
andMPI
.Step 2:
- Run
R
from command line. - Load
pbdCS
andpbdZMQ
libraries insideR
. - Launch 4
pbdR
servers bypbd_launch_servers(nranks = 4)
. - Launch
pbdR
client bypbd_launch_client()
. - Ask servers to do the works, such as
allreduce(5)
.
Note that there are 4 servers, so the results should be 20. - Run
Rgui.exe
to have aR
GUI and go to next Step 3.
- Run
Step 3: Do the same things as Step 2, but in
R
GUI instead typing in the command line.
Note that thisR
is executed from a command line withMPI
in the environment variablePATH
in order to have 4 servers run correctly.