omp_proc_bind_t omp_get_proc_bind(void);
SummaryThe omp_get_proc_bind routine returns the thread affinity policy to be used for the subsequent nested parallel regions that do not specify a proc_bind clause.
Constraints on ArgumentsThe value returned by this routine must be one of the valid affinity policy kinds. The C/C++ header file (omp.h) and the Fortran include file (omp_lib.h) and/or Fortran 90 module file (omp_lib) define the valid constants. The valid constants must include the following:
integer (kind=omp_proc_bind_kind), &
parameter :: omp_proc_bind_false = 0
integer (kind=omp_proc_bind_kind), &
parameter :: omp_proc_bind_true = 1
integer (kind=omp_proc_bind_kind), &
parameter :: omp_proc_bind_master = 2
integer (kind=omp_proc_bind_kind), &
parameter :: omp_proc_bind_close = 3
integer (kind=omp_proc_bind_kind), &
parameter :: omp_proc_bind_spread = 4
BindingThe binding task set for an omp_get_proc_bind region is the generating task.
EffectThe effect of this routine is to return the value of the first element of the bind-var ICV of the current task. See Section 2.6.2 on page 227 for the rules that govern the thread affinity policy.