
PVM version 3 examples
14 Feb 1993

________________________________________________________________________

This directory contains C and Fortran example programs using PVM 3.0.
Two programming paradigms are presented:
A master/slave example where the master process creates and
directs some number of slave processes that cooperate to do the work.
An SPMD (Single Program Multiple Data) example where a single
"hostless" program creates copies of itself and then proceeds to
solve a problem in parallel.

A third example called testall.f illustrates the use of most of the
available PVM 3.0 Fortran calls and also serves to test which options
are implemented at the present time.

A simple bandwidth timing routine is included to illustrate how 
timing can be done in PVM programs.

To build any of these examples edit the Makefile and 
enter your architecture type ARCH= ...
and set ARCHLIB as specified in the Makefile header.

make spmd      - creates C version of SPMD example
make fspmd     - creates Fortran version of SPMD example

make master    - creates C version of
make slave     - master/slave example

make fmaster   - creates Fortran version of
make fslave    - master/slave example

make testall   - creates Fortran interface tester

make timing        - creates bandwidth timing example
make timing_slave  - for timing in C programs

To Run examples: The executables are placed in pvm3/bin/ARCH
To execute simply type the executable name at any UNIX prompt
after PVM has been started up. The examples are independent
of the number of computers in the virtual machine.
The user should execute one of

spmd
master
testall
timing
 
