next up previous

3.2 Fortran 77 Example     continued...

When compiling Fortran 77 PVM codes, you must link in both the PVM Fortran library and the standard PVM library compiled for the target architecture. In the compilation command, you may need to specify an include file and/or library search path if files are in a non-standard places. The compilation process for our example codes, using PVM built on the same account, would be

> f77 -o master master.f -Ipvm3/include -Lpvm3/lib/SUN4 -lfpvm3 -lpvm3
> mv master pvm3/bin/SUN4/master
> f77 -o worker worker.f -Ipvm3/include -Lpvm3/lib/SUN4 -lfpvm3 -lpvm3
> mv worker pvm3/bin/SUN4/worker
The executables are moved to the PVM default directory pvm3/bin/SUN4. PVM will then find the worker code when those tasks are spawned from the master program.

Complete details for all PVM library functions can be found in PVM 3 User's Guide and Reference Manual. This document is available from by sending the message send from pvm3

Section 4 give details on how to run these executables under PVM.