Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Studio 12.3: OpenMP API User's Guide Oracle Solaris Studio 12.3 Information Library |
2. Compiling and Running OpenMP Programs
3. Implementation-Defined Behaviors
3.3 Internal Control Variables
3.7.3 omp_set_max_active_levels()
3.7.4 omp_get_max_active_levels()
3.9.3 Runtime Library Definitions
6. Automatic Scoping of Variables
The implementation provides the ability to dynamically adjust the number of threads. Dynamic adjustment is enabled by default. Set the OMP_DYNAMIC environment variable to FALSE or call the omp_set_dynamic() routine with the appropriate argument to disable dynamic adjustment.
When a thread encounters a parallel construct, the number of threads delivered by this implementation is determined according to Algorithm 2.1 in the OpenMP 3.1 Specification. In exceptional situations, such as a lack of system resources, the number of threads supplied will be less than described in Algorithm 2.1. In these situations, if SUNW_MP_WARN is set to TRUE or a callback function is registered through a call to sunw_mp_register_warn(), a warning message is issued.