#pragma omp parallel sections

Description

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

Syntax

#pragma omp parallel sections [clause[[,] clause] ...] 
   {
     [#pragma omp section]
          statement-block
     [#pragma omp section]
          statement-block
       .
       .
       .
     ]
   }

Notes

All clauses and restrictions described in the omp parallel and omp sections directives apply to the omp parallel sections directive.

Related References

Pragmas to Control Parallel Processing
#pragma omp parallel
#pragma omp section, #pragma omp sections IBM Copyright 2003