
80 Cray T3E User’s Guide
t3e% module load pghpf
The compiler is invoked with the command pghpf. It accepts files ending
with .hpf, .f, .F,.for or .f90. Files ending with .F are processed
using the C preprocessor. Suppose that the previous program is in the
file dot.f90. The program can be compiled and run with the following
commands:
t3e% pghpf -Minfo -Mstats -Mautopar dot.f90 -o dot
t3e% mpprun -n 4 dot -pghpf -stat alls
The compiler option -Minfo produces messages about parallelization
of do loops and arrays that are not distributed. The option -Mstats en-
ables collection of performance data during the run and -Mautopar par-
allelizes the parallelizable DO loops without the directive independent.
The options -pghpf -stat alls print statistics about timing, memory
use and message passing after the run. These options are not necessary,
but they provide useful information about the program.
An introduction to HPF with a plenty of examples is presented in The
High Performance Fortran Handbook [KLS
+
94]. In 3/97 and 5/97 is-
sues of the @CSC magazine there are articles considering HPF on the
T3E. The manual pages of the compiler are available with the command
man pghpf and the complete documentation for PGHPF 2.3 can be ac-
cessed at http://www.csc.fi/programming/doc/pghpf/2.3. More
information on the HPF standard can be obtained at the WWW address
http://www.mhpcc.edu/doc/hpf/hpf.html.
Komentarze do niniejszej Instrukcji