mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 16:32:11 +01:00
13 lines
338 B
TeX
13 lines
338 B
TeX
\pagebreak
|
|
\section{A Simple Parallel Loop}
|
|
\label{sec:ploop}
|
|
|
|
The following example demonstrates how to parallelize a simple loop using the parallel
|
|
loop construct. The loop iteration variable is private by default, so it is not
|
|
necessary to specify it explicitly in a \code{private} clause.
|
|
|
|
\cexample{ploop}{1}
|
|
|
|
\fexample{ploop}{1}
|
|
|