Oracle® Solaris Studio 12.4: OpenMP API User's Guide

Exit Print View

Updated: December 2014
 
 

6.2.1 __auto Clause

Syntax:   __auto(list-of-variables)

For Fortran, __AUTO(list-of-variables) is also accepted.

The __auto clause can appear on a parallel directive (including parallel for/do, parallel sections, and Fortran parallel workshare directive) or on a task directive.

The __auto clause on a parallel or task construct directs the compiler to automatically determine the scopes of the named variables in the construct. (Note the two underscores before auto.)

If a variable is specified in the __auto clause, then it cannot be specified in any other data sharing attribute clause.