/ OpenMP Directives: Data Scope Attribute Clauses: DEFAULT Clause
OpenMP Directives: Data Scope Attribute Clauses: DEFAULT Clause
The DEFAULT clause allows the user to specify a default scope for all variables in the lexical extent of any parallel region.
DEFAULT (PRIVATE | FIRSTPRIVATE | SHARED | NONE)
default (shared | none)
Specific variables can be exempted from the default using the PRIVATE, SHARED, FIRSTPRIVATE, LASTPRIVATE, and REDUCTION clauses.
The C/C++ OpenMP specification does not include private or firstprivate as a possible default. However, actual implementations may provide this option.
Using NONE as a default requires that the programmer explicitly scope all variables.
Only one DEFAULT clause can be specified on a PARALLEL directive.
Lawrence Livermore National Laboratory
7000 East Avenue • Livermore, CA 94550 | LLNL-WEB-458451
Operated by the Lawrence Livermore National Security, LLC for the
Department of Energy's National Nuclear Security Administration
Learn about the Department of Energy's Vulnerability Disclosure Program