naginterfaces.library.omp.set_nested¶
- naginterfaces.library.omp.set_nested(nesting)[source]¶
set_nested
enables or disables nested OpenMP parallelism.Deprecated since version 28.3.0.0:
set_nested
will be removed in naginterfaces 31.3.0.0. Please useset_max_active_levels()
instead. See also the Replacement Calls document.For full information please refer to the NAG Library document for x06ag
https://support.nag.com/numeric/nl/nagdoc_30.1/flhtml/x06/x06agf.html
- Parameters
- nestingint
If , nesting of OpenMP parallel regions is disabled, otherwise it is enabled.
- Notes
set_nested
, for multithreaded implementations, enables or disables the nesting of OpenMP parallel regions by setting an OpenMP Internal Control Variable (ICV) and any vendor library specific options where that is possible.Nesting is disabled by default in OpenMP.
In serial implementations of the NAG Library
set_nested
has no effect. See the submoduleomp
for a discussion of the behaviour of these functions when called in serial.
- References
The OpenMP API Specification for Parallel Programming
Chapman, B, Jost, G and van der Pas, R, 2008, Using OpenMP Portable Shared Memory Parallel Programming, The MIT Press