mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
12 lines
330 B
TeX
12 lines
330 B
TeX
\chapter{A Simple Parallel Loop}
|
|
\label{chap: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}{1c}
|
|
|
|
\fexample{ploop}{1f}
|
|
|