mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
20 lines
429 B
TeX
20 lines
429 B
TeX
%\pagebreak
|
|
\section{Nested Loop Constructs}
|
|
\label{sec:nested_loop}
|
|
\index{nested loop constructs}
|
|
|
|
The following example of loop construct nesting is conforming because the inner
|
|
and outer loop regions bind to different \kcode{parallel} regions:
|
|
|
|
\cexample{nested_loop}{1}
|
|
|
|
\fexample{nested_loop}{1}
|
|
|
|
The following variation of the preceding example is also conforming:
|
|
|
|
\cexample{nested_loop}{2}
|
|
|
|
\fexample{nested_loop}{2}
|
|
|
|
|