Go to the first, previous, next, last section, table of contents.


Building and running MPI programs

C programs that use the HPVM implementation of MPI should #include <mpi.h>, and Fortran programs that use the HPVM implementation of MPI should include 'mpif.h'. All programs must be linked with `mpi.lib' (Windows NT) or `libmpi.a' (Linux) and all the libraries listed in section Building and running FM programs.

Further, programs using HPVM MPI need the FM environment variables to be set before they can run (see section Building and running FM programs). MPI programs should be run in the same way that FM programs are run. On each node, start the program; when all nodes have reached their MPI_Init() call See section Initialization and termination functions, they will synchronize and the program will begin to execute. In addition to any program specific-command line arguments, every program must be run with -np #-of-processes and -key some-key-name specified at the command prompt.(19)

It should also be noted that in HPVM, MPI programs are generally run using a Java-based front end to LSF (see section HPVM front end). This obviates the need for an `mpirun' program to start up the executable(s).


Go to the first, previous, next, last section, table of contents.