#pragma omp parallel for

Applicable invocations

Table 1. Invocations that accept the given pragma
Pragma xlc (Compiling C) xlC (Compiling C++) xlclang (Compiling C) xlclang++ (Compiling C++)
#pragma omp parallel for    
Note: Only typical invocations are listed in this table. You can refer to the full list of compiler invocations for all basic invocations and their equivalent special invocations.

Purpose

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

Read syntax diagramSkip visual syntax diagram#pragmaomp parallel for ,clause for-loop

Usage

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