next up previous contents
Next: connecting to input/output files Up: submitting scalar jobs to Previous: submittting multi-threaded jobs   Contents

compiling and running HPF codes

In order to compile and link a High Performance Fortran code you need to use the mpif90 -compiler pghpf wrapper. In addition you need to link in the Portland mpi.o code. First make a copy of mpi.c located in /usr/pgi/src/mpi and compile it to a .o file using mpicc. Then compile and link your code using mpif90 -compiler pghpf with the -Mmpi and any optimisation options you require - e.g:

  mpicc -c mpic.c
  mpif90 -compiler pghpf -Mmpi -fast -tp athlonxp foo.f90 mpi.o


2004-06-17