Go to main content
Oracle® Developer Studio 12.5: OpenMP API User's Guide

Exit Print View

Updated: July 2016
 
 

2.4 OpenMP Runtime Routines

The section describes the behaviors of certain OpenMP runtime routines when the program is compiled using Oracle Developer Studio compilers.

2.4.1 omp_set_num_threads()

If the argument to omp_set_num_threads() is not a positive integer, then the call is ignored. A warning message is issued if SUNW_MP_WARN is set to TRUE or a callback function is registered by a call to sunw_mp_register_warn().

2.4.2 omp_set_schedule()

The behavior for the Oracle Developer Studio specific sunw_mp_sched_reserved schedule is the same as static with no chunk size.

2.4.3 omp_set_max_active_levels()

When omp_set_max_active_levels() is called from within an active parallel region, then the call is ignored. A warning message is issued if SUNW_MP_WARN is set to TRUE or a callback function is registered by a call to sunw_mp_register_warn().

If the argument to omp_set_max_active_levels() is not a non-negative integer, then the call is ignored. A warning message is issued if SUNW_MP_WARN is set to TRUE or a callback function is registered by a call to sunw_mp_register_warn().

2.4.4 omp_get_max_active_levels()

omp_get_max_active_levels() can be called from anywhere in the program. The call returns the value of the max-active-levels-var internal control variable.