Compaq Fortran for Tru64 UNIX Alpha Systems V5.4
omp_set_nested (3f)
enables or disables nested parallelism
Syntax
interface
subroutine omp_set_nested ( enable )
logical enable
end subroutine omp_set_nested
end interface
logical scalar_logical_expression
call omp_set_nested ( scalar_logical_expression )
Description
If the value of the scalar logical expression is FALSE, nested parallelism
is disabled, and nested parallel regions are serialized and executed by the
current thread. This is the default.
If the value of the scalar logical expression is set to TRUE, nested
parallelism is enabled, and parallel regions that are nested can deploy
additional threads to form the team.
When nested parallelism is enabled, the number of threads used to execute
the nested parallel regions is implementation dependent. This lets
implementations that comply with the OpenMP standard serialize nested
parallel regions, even when nested parallelism is enabled.
A call to omp_set_nested has precedence over the OMP_NESTED environment
variable.
See Also
omp_get_nested(3f)