mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
15 lines
411 B
TeX
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}
|
|
|
|
|