The file mpihello.f is a simple fortran hello world program using some simple mpi commands. To compile (on borg) using the portland group f77 compiler, the command is: pgf77 -I/net/lam/include mpitest.f -L/net/lam/lib -lutil -llamf77mpi -lmpi -llam -lpthread To use the intel fortran compile use: ifort -I/net/lam/include mpitest.f -L/net/lam/lib -lutil -llamf77mpi -lmpi -llam -lpthread As is, this will not work with the g77 unless the trailing underscores are removed from every mpi function. It also does not work with the mpif77 command (because that command currently does not work). To run the resulting binary, at the prompt type: lamboot mpirun -np 4 a.out (where 4 is the number of processes you want to) lamhalt To use the portland group fortran compiler, the following must be in your .tcshrc file: setenv PGI /net/pgi set path = (/net/lam/bin /net/condor/bin $PGI/linux86/5.1/bin $path) setenv MANPATH /net/lam/man:$PGI/man:/net/proj/guest/vernaleo/hdf/man: setenv LAMHF77 $PGI/linux86/bin/pgf77 For the intel compiler: source /astromake/astromake_start astroload intel