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 and MPI.
- Step 2:
1. Run R from command line.
2. Load pbdCS and pbdZMQ libraries
inside R.
3. Launch 4 pbdR servers by
pbd_launch_servers(nranks = 4).
4. Launch pbdR client by
pbd_launch_client().
5. Ask servers to do the works, such as
allreduce(5).
Note that there are 4 servers, so the results should be 20.
6. Run Rgui.exe to have a R GUI and go to next
Step 3.
- Step 3:
Do the same things as Step 2,
but in R GUI instead typing in the command line.
Note that this R is executed from a command line with
MPI in the environment variable PATH
in order to have 4 servers run correctly.
---