Now that all the hosts have been entered, the user can proceed to enter the host commands. The commands to be entered for a particular host will be those necessary to compile the manager.c and worker.c programs. In this example, the general procedure for compiling these programs will be to change to the remote-host directory in which the source files are located and to issue the ``make'' command. The makefile appropriate to the particular host will have already been sent as part of the file-transfer phase of the process of building the parallel application. On the example virtual machine, described in Chapter 1, Section 1.3, the commands required to build manager.c and worker.c on the host shadowfax.nist.org (a SUN4) would be as follows.
cd ~edwards/pvm3/bin/SUN4; make -f makefile.shadowfaxThe commands for the other three hosts will be essentially the same except that the path name to the PVM executable directory will differ as well as the name of the makefile.
The user should now enter commands similar to the above for each host appropriate to his or her virtual machine. To enter the commands to be executed on a particular host, the user should first highlight an entry in the Host list in the Setup window by clicking on it with the left mouse button. The user then selects the Modify Host button at the top of the window. This will cause the Add Host window to appear. The host name text-entry box will already have the host name entered. Now the user should enter the appropriate change-directory and make commands in the Host commands text-entry box. Then choose the Save button in the Add Host window. Repeat this procedure for all other hosts on the virtual machine. Note that the development host is treated no differently than any other host, even though the files that will be transferred only entail copying them from one place on the disk to another.