#pragma omp parallel for

Description

The omp parallel for directive effectively combines the omp parallel and omp for directives. This directive lets you define a parallel region containing a single for directive in one step.

Syntax

#pragma omp parallel for [clause[[,] clause] ...] 
<for_loop>

Notes

With the exception of the nowait clause, clauses and restrictions described in the omp parallel and omp for directives also apply to the omp parallel for directive.

Related References

Pragmas to Control Parallel Processing
#pragma omp for
#pragma omp parallel IBM Copyright 2003