OpenMP-Examples/Examples_lastprivate.tex
2015-01-13 11:38:24 -08:00

15 lines
411 B
TeX

\pagebreak
\chapter{The \code{lastprivate} Clause}
\label{chap:lastprivate}
Correct execution sometimes depends on the value that the last iteration of a loop
assigns to a variable. Such programs must list all such variables in a \code{lastprivate}
clause so that the values of the variables are the same as when the loop is executed
sequentially.
\cexample{lastprivate}{1c}
\fexample{lastprivate}{1f}