Admin Production ni-theme
Current Publication

parallel for

LabWindows/CVI

parallel for Directive

Specifies a parallel region containing one for directive. The parallel for directive is a shortcut for the parallel directive followed immediately by a for directive. The shortcut creates a team of threads and divides loop iterations between the threads at the same time.

Binding thread set: encountering thread

Format

#pragma omp parallel for [clause[ [,]clause] ..] newline
for statement

Examples

Refer to the following examples that use the OpenMP parallel for clause:

  • OpenMP\2dfft_omp.cws

    Open example
  • OpenMP\matrixmult.cws

    Open example