10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

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.

OpenMP Directives for <strong>Fortran</strong>‣ Unsynchronized use of <strong>Fortran</strong> I/O statements by multiple tasks on the same unit hasunspecified behavior.8.7.16. TASKWAIT<strong>The</strong> OpenMP TASKWAIT directive specifies a wait on the completion of child tasks generatedsince the beginning of the current task.Syntax!$OMP TASKWAITClausesIF(scalar_logical_expression)UNTIEDDEFAULT(private | firstprivate | shared | none)PRIVATE(list)FIRSTPRIVATE(list)SHARED(list)Usage<strong>The</strong> OpenMP TASKWAIT directive specifies a wait on the completion of child tasks generatedsince the beginning of the current task.Restrictions<strong>The</strong> following restrictions apply to the TASKWAIT directive:‣ <strong>The</strong> TASKWAIT directive and the omp taskwait pragma may be placed only at a pointwhere a base language statement is allowed.‣ <strong>The</strong> taskwait directive may not be used in place of the statement following an if, while,do,switch, or label.8.7.17. THREADPRIVATE<strong>The</strong> OpenMP THREADPRIVATE directive identifies a <strong>Fortran</strong> common block as being privateto each thread.Syntax!$OMP THREADPRIVATE (list)Usage<strong>The</strong> list for this directive is a comma-separated list of named variables to be made private toeach thread or named common blocks to be made private to each thread but global within thethread.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 178

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

Saved successfully!

Ooh no, something went wrong!