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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.10 SECTIONS ... END SECTIONSThe OpenMP SECTIONS...END SECTIONS directive pair uses the following syntax:Syntax:Clauses:!$OMP SECTIONS [ Clauses ][!$OMP SECTION]< Fortran code block executed by processor i >[!$OMP SECTION]< Fortran code block executed by processor j >...!$OMP END SECTIONS [NOWAIT]PRIVATE (list)FIRSTPRIVATE (list)LASTPRIVATE (list)REDUCTION({operator | intrinsic} : list)The SECTIONS...END SECTIONS directive pair defines a non-iterative work-sharingconstruct within a parallel region. Each section is executed by a single processor. If there are moreprocessors than sections, some processors will have no work and will jump to the implied barrierat the end of the construct. If there are more sections than processors, one or more processors willexecute more than one section.A SECTION directive may only appear within the lexical extent of the enclosingSECTIONS...END SECTIONS directives. In addition, the code within the SECTIONS...ENDSECTIONS directives must be a structured block, and the code in each SECTION must be astructured block.The available clauses are as defined in the DO...END DO and PARALLEL...END PARALLELsections.8.11 PARALLEL SECTIONSThe OpenMP PARALLEL SECTIONS...END SECTIONS directive pair uses the followingsyntax:Syntax:!$OMP PARALLEL SECTIONS [CLAUSES][!$OMP SECTION]< Fortran code block executed by processor i >298 Chapter 8

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

Saved successfully!

Ooh no, something went wrong!