Cette documentation est archivée et n’est pas conservée.

default (OpenMP)

Specifies the behavior of unscoped variables in a parallel region.

default(shared | none)

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 default.

See private (OpenMP) for an example of using default.