PGHPF Workstation Reference Manual - Contents
Preface
Audience Description
Compatibility and Conformance to Standards
Organization
Hardware and Software Constraints
Conventions
Related Publications
1 Language Overview
1.1 Elements of a Fortran Program Unit
1.1.1 Statements and Comments
1.1.2 Free and Fixed Source
1.2 The Fortran Character Set
1.3 Free Form Formatting
1.4 Fixed Formatting
1.4.1 Column Formatting
1.4.2 Fixed Format Label Field
1.4.3 Fixed Format Continuation Field
1.4.4 Fixed Format Statement Field
1.4.5 Fixed Format Debug Statements @
1.4.6 Tab Formatting @
1.4.7 Fixed Input File Format Summary
1.5 Including Fortran Source Files
1.6 The Components of Fortran Statements
1.6.1 Symbolic Names
1.7 Expressions
1.7.1 Expression Precedence Rules
1.8 Symbolic Name Scope
1.9 Assignment Statements
1.10 Listing Controls
1.11 HPF Directives
2 HPF Data Types
2.1 Intrinsic Data Types
2.1.1 Kind Parameter
2.1.2 Number of Bytes Specification @
2.2 Constants
2.2.1 Integer Constants
Binary, Octal and Hexadecimal Constants
2.2.2 Real Constants
Double Precision Constants
2.2.3 Complex Constants
2.2.4 Logical Constants
2.2.5 Character Constants
2.2.6 PARAMETER Constants
2.3 Derived Types
2.4 Arrays
2.5 Fortran Pointers and Targets
2.6 Fortran Binary, Octal and Hexadecimal Constants
2.7 Hollerith Constants
3 Fortran Statements
Fortran Statements
ACCEPT @
ALLOCATABLE 90
ALLOCATE
ARRAY CMF
ASSIGN Obsolescent
BACKSPACE 77
BLOCK DATA 77
BYTE @
CALL 90
CASE 90
CHARACTER 90
CLOSE 77
COMMON 90
COMPLEX 90
CONTAINS 90
CONTINUE 77
CYCLE 90
DATA 77
DEALLOCATE 90
DECODE @
DIMENSION 90
DOUBLE COMPLEX @
DOUBLE PRECISION 90
DO (Iterative) 90
DO WHILE 90
ENCODE @
END 90
ENTRY 77
EQUIVALENCE 77
EXIT 90
EXTERNAL 77
EXTRINSIC HPF
FORALL HPF
FORMAT 77
FUNCTION 90
GOTO (Assigned) Obsolescent
GOTO (Computed) 77
GOTO (Unconditional) 77
IF (Arithmetic) Obsolescent
IF (Block) 90
IMPLICIT 77
INCLUDE 90
INQUIRE 90
INTEGER 90
INTENT 90
INTERFACE 90
INTRINSIC 90
LOGICAL 90
MODULE 90
NAMELIST 90
NULLIFY 90
OPEN 90
OPTIONAL 90
OPTIONS @
PARAMETER 77
PAUSE Obsolescent
POINTER 90
PRINT 77
PRIVATE 90
PROGRAM 77
PUBLIC 90
PURE HPF
READ 90
REAL 90
RECURSIVE 90
RETURN 77
REWIND 77
SAVE 77
SELECT CASE 90
SEQUENCE 90
STOP 77
SUBROUTINE 77
TARGET 90
TYPE 90
USE 90
VOLATILE @
WHERE 90
WRITE 90
4 HPF Directives
4.1 Adding HPF Directives to programs
4.2 HPF Directive Summary
ALIGN - REALIGN
DIMENSION
DYNAMIC
DISTRIBUTE - REDISTRIBUTE
INDEPENDENT
INHERIT
PROCESSORS
NO SEQUENCE
SEQUENCE
TEMPLATE
5 Fortran Arrays
5.1 Array Types
5.1.1 Explicit Shape Arrays
5.1.2 Assumed Shape Arrays
5.1.3 Deferred Shape Arrays
5.1.4 Assumed Size Arrays
5.2 Array Specification
5.2.1 Explicit Shape Arrays
5.2.2 Assumed Shape Arrays
5.2.3 Deferred Shape Arrays
5.2.4 Assumed Size Arrays
5.3 Array Subscripts and Access
5.3.1 Array Sections and Subscript Triplets
5.3.2 Array Sections and Vector Subscripts
5.4 Array Constructors
5.5 PGI Array Extensions (CM Fortran) @
5.5.1 The ARRAY Attribute (CM Fortran) @
5.5.2 Array Constructors Extensions (CM Fortran) @
6 Input and Output Formatting
6.1 File Access Methods
6.1.1 Standard Preconnected Units
6.2 Opening and Closing Files
6.2.1 Direct Access Files
6.2.2 Closing a File
6.3 Data Transfer Statements
6.4 Unformatted Data Transfer
6.5 Formatted Data Transfer
6.5.1 Implied DO List Input Output List
6.5.2 Format Specifications
A Format Control Character Data
B Format Control Binary Data
D Format Control Real Double Precision Data with Exponent
E Format Control Real Single Precision Data with Exponent
EN Format Control
ES Format Control
F Format Control - Real Single Precision Data
G Format Control
I Format Control Integer Data
L Format Control Logical Data
Quote Format Control
BN Format Control Blank Control
H Format Control Hollerith Control
O Format Control Octal Values
P Format Specifier Scale Control
Q Format Control - Quantity
S Format Control Sign Control
T , TL and X Format Controls Spaces and Tab Controls
Z Format Control Hexadecimal Values
Slash Format Control / End of Record
The : Format Specifier Format Termination
$ Format Control
6.6 Non Advancing Input and Output
6.7 List-directed formatting
6.7.1 List-directed input
6.7.2 List-directed output
Notes
6.7.3 Commas in External Field
6.8 Namelist Groups
6.8.1 Namelist Input
6.8.2 Namelist Output
A Fortran 90 Intrinsics
Fortran 90 Intrinsics
ABS
ACHAR
ACOS
ADJUSTL
ADJUSTR
AIMAG
AINT
ALL
ALLOCATED
ANINT
ANY
ASIN
ASSOCIATED
ATAN
ATAN2
BIT_SIZE
BTEST
CEILING
CHAR
CMPLX
CONJG
COS
COSH
COUNT
CSHIFT
DATE_AND_TIME
DBLE
DIGITS
DIM
DOT_PRODUCT
DPROD
EOSHIFT
EPSILON
EXP
EXPONENT
FLOOR
FRACTION
HUGE
IACHAR
IAND
IBCLR
IBITS
IBSET
ICHAR
IEOR
INDEX
INT
IOR
ISHFT
ISHFTC
KIND
LBOUND
LEN
LEN_TRIM
LGE
LGT
LLE
LLT
LOG
LOG10
LOGICAL
MATMUL
MAX
MAXEXPONENT
MAXLOC
MAXVAL
MERGE
MIN
MINEXPONENT
MINLOC
MINVAL
MOD
MODULO
MVBITS
NEAREST
NINT
NOT
PACK
PRECISION
PRESENT
PRODUCT
RADIX
RANDOM_NUMBER
RANDOM_SEED
RANGE
REAL
REPEAT
RESHAPE
RRSPACING
SCALE
SCAN
SELECTED_INT_KIND
SELECTED_REAL_KIND
SET_EXPONENT
SHAPE
SIGN
SIN
SINH
SIZE
SPACING
SPREAD
SQRT
SUM
SYSTEM_CLOCK
TAN
TANH
TINY
TRANSFER
TRANSPOSE
TRIM
UBOUND
UNPACK
VERIFY
B HPF Intrinsics and Library Procedures
C HPF_LOCAL_LIBRARY Procedures
HPF_LOCAL_LIBRARY Procedures
ABSTRACT_TO_PHYSICAL
GLOBAL_ALIGNMENT
GLOBAL_DISTRIBUTION
GLOBAL_LBOUND
GLOBAL_SHAPE
GLOBAL_SIZE
GLOBAL_TEMPLATE
GLOBAL_TO_LOCAL
GLOBAL_UBOUND
LOCAL_BLKCNT
LOCAL_LINDEX
LOCAL_TO_GLOBAL
LOCAL_UINDEX
MY_PROCESSOR
PHYSICAL_TO_ABSTRACT
D PGI Language Extensions
D.1 PGI Structures and Records @
D.1.1 Structures @
D.1.2 Records @
D.1.3 UNION and MAP Declarations @
D.2 Cray Pointer Variables @
D.2.1 Pointer Variables
D.2.2 Restrictions
D.3 Octal and Hexadecimal Constants - Alternate Form @
D.4 Non-character Format Specifiers @
D.5 Built-in Functions @
%LOC(arg)
%REF(a)
%VAL(a)
D.6 PGI Statement Extension Reference @
MAP @
RECORD @
RECORD @
STRUCTURE @
UNION @
D.7 CM Fortran Intrinsics @
CSHIFT @
EOSHIFT @
RESHAPE @
D.8 Other Extensions