Next: Example PADE Session
Up: The Parallel Applications
Previous: The .rhosts
File
PADE is intended to be an intuitive graphical user interface for developing
parallel applications on a virtual machine. The typical use of PADE consists
of the following steps:
- Initiate the virtual machine using the PVM button.
- Construct the PADE data using the Setup button or
Graph button.
- Distribute and compile the application using the PVMmake button.
- Run the application using the Apps button.
- Edit files, redistribute modified files, and repeat the cycle as necessary.
In this chapter we go through an example of this process using
the manager/worker
program in the examples
subdirectory of the PADE
distribution. This program is a variation of one of the examples contained
in the PVM distribution.
The files located in the examples
subdirectory are:
- manager.c
--
A slightly modified version of the master.c
program
provided with the PVM software.
- worker.c
--
A slightly modified version of the slave.c
program
provided with the PVM software.
- makefile.mw
--
A generic makefile that can be used to compile
the manager.c
and worker.c
source files. A modified copy
of this makefile will be needed for each architecture/file-system
combination of the user's virtual
machine.
- pade_setenv
--
A script that can be executed to set the
environment variables and directory paths that are needed in order
for PADE to run. This file assumes the user is running either
the csh or tcsh shell.
- pade_export
--
A script similar to pade_setenv
except
that it assumes the user is running either the sh, ksh,
or bash shell.
- mw
--
An example PADE data file used to compile the source
files.
- mw.pvmmake
--
The PVMmake
config file corresponding to the
mw
PADE data file.
- pvmmake.output
--
An example of the output from running PVMmake
to
compile the manager/worker
example.
- mw_make_clean
--
An example PADE data file used to remove the
executable and object files created on all virtual machine nodes during
compilation of the manager/worker
example program.
- mw_make_clean.pvmmake
--
The PVMmake
config file corresponding
to the mw_make_clean
PADE data file.
- mw_run
--
An example PADE data file used to execute the
manager/worker
program using PVMmake
.
- mw_run.pvmmake
--
The PVMmake
command file corresponding to the
mw_run
PADE data file.
The manager.c
and worker.c
source files need not be modified by
the user. The user will need to make several copies of makefile.mw
,
possibly one for each node on the virtual machine, and modify each
appropriately.
The PADE data files and corresponding PVMmake
files are provided only as
examples and will not be needed by the user.
Next: Example PADE Session
Up: The Parallel Applications
Previous: The .rhosts
File
pade@cam.nist.gov