12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 HPF DirectivesHPF directives are Fortran 90/95 comments which convey information to the PGHPF compiler.Directives are the heart of an HPF program, indicating data parallelism by specifying how data isassigned and allocated among processors on a parallel system, and the interrelationships betweenvarious data elements.9.1 Adding HPF Directives to ProgramsDirectives in an HPF program may have any of the following forms:CHPF$ directive!HPF$ directive*HPF$ directiveSince HPF supports two source forms, fixed source form, and free source form, there are a varietyof methods to enter a directive. Section 3.4 of the Fortran 95 Handbook outlines methods forentering code that is valid for both free and fixed form Fortran. The C, !, or * must be in column 1for fixed source form directives. In free source form, Fortran limits the comment character to !. Ifyou use the !HPF$ form for the directive origin, and follow the rules outlined in the Fortran 95Handbook, your code will be universally valid. The body of the directive may immediately followthe directive origin. Alternatively, using free source form, any number of blanks may precede theHPF directive. Any names in the body of the directive, including the directive name, may notcontain embedded blanks. Blanks may surround any special characters, such as a comma or anequals sign.The directive name, including the directive origin, may contain upper or lower case letters (case isnot significant).HPF Directives 305

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!