Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the behavior of unscoped variables in a parallel region.
default(shared | none)
Remarks
shared, which is in effect if the default clause is not specified, means that any variable in a parallel region will be treated as if it were specified with the shared (OpenMP) clause. none means that any variables used in a parallel region that are not scoped with the private (OpenMP), shared (OpenMP), reduction, firstprivate, or lastprivate clause will cause a compiler error.
default applies to the following directives:
For more information, see 2.7.2.5 default.
Example
See private (OpenMP) for an example of using default.