06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

14 <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

• FIRSTPRIVATE (list)<br />

See “FIRSTPRIVATE Clause”.<br />

• LASTPRIVATE (list)<br />

See “LASTPRIVATE Clause”.<br />

• PRIVATE (list)<br />

See “PRIVATE Clause”.<br />

• REDUCTION ( operator | intrinsic : list )<br />

See “REDUCTION Clause”.<br />

block<br />

Is a structured block (section) of statements or constructs. Any constituent section must also be a<br />

structured block.<br />

You cannot branch into or out of the block.<br />

Rules and Behavior<br />

Each section of code is preceded by a SECTION directive, although the directive is optional for<br />

the first section. The SECTION directives must appear within the lexical extent of the SECTIONS<br />

and END SECTIONS directive pair.<br />

The last section ends at the END SECTIONS directive. Threads that complete execution of their<br />

SECTIONs encounter an implied barrier at the END SECTIONS directive unless NOWAIT is<br />

specified.<br />

SECTIONS directives must be encountered by all threads in a team or by none at all. It must also<br />

be encountered in the same order by all threads in a team.<br />

Example<br />

In the following example, subroutines XAXIS, YAXIS, and ZAXIS can be executed concurrently:<br />

c$OMP PARALLEL<br />

c$OMP SECTIONS<br />

c$OMP SECTION<br />

CALL XAXIS<br />

c$OMP SECTION<br />

CALL YAXIS<br />

c$OMP SECTION<br />

CALL ZAXIS<br />

c$OMP END SECTIONS<br />

c$OMP END PARALLEL<br />

14-70

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

Saved successfully!

Ooh no, something went wrong!