Sun Studio 12 Update 1: OpenMP API User's Guide

6.2 Autoscoping Rules

Under automatic scoping, the compiler applies the following rules to determine the scope of a variable in a parallel region.

These rules do not apply to variables whose scopes are predetermined by the OpenMP specification, such as loop iteration variables of worksharing DO or FOR loops. Refer to OpenMP 3.0 Specification (section 2.9.1.1, page 78) for a complete listing of variables whose scopes are predetermined.

6.2.1 Autoscoping Rules For Scalar Variables

6.2.2 Autoscoping Rules for Arrays