Download Here

Transcript
7.9 USE Statements HPF_LIBRARY and
HPF_LOCAL_LIBRARY
The HPF language specification states that the HPF_LIBRARY and
HPF_LOCAL_LIBRARY routines are only available if USE HPF_LIBRARY
or USE HPF_LOCAL_LIBRARY statements are issued. The Compaq Fortran
compiler relaxes this restriction. The USE statements, if present, are accepted,
but are not required.
7.10 Forcing Synchronization
The following routines automatically force synchronization of the processors
when called from global HPF routines:
•
Intrinsic subroutines:
DATE_AND_TIME
SYSTEM_CLOCK
DATE
IDATE
TIME
•
Intrinsic functions:
SECNDS
These routines do not force synchronization when called from
EXTRINSIC(HPF_LOCAL) and EXTRINSIC(HPF_SERIAL) routines.
Synchronization of processors can have an effect on performance. Therefore, it
is preferable to avoid synchronization of the processors in the computationally
intensive kernel of a program.
7.11 Input/Output in HPF
In Compaq Fortran, all I/O operations are serialized through a single processor.
The cluster consists of members from which are chosen a set of peer processors
on which the parallel application executes. These are formally numbered
starting from 0 as Peer 0, Peer 1, and so on.
All I/O operations are serialized through Peer 0. This means that all data in
an output statement which is not available on Peer 0 is copied to a buffer on
Peer 0. Consider the following example:
INTEGER, DIMENSION(10000000) :: A
!HPF$ DISTRIBUTE A(BLOCK)
PRINT *, A
7–10 Optimizing HPF Programs