Next: omp_get_schedule
– Obtain the runtime scheduling method, Previous: omp_get_num_threads
– Size of the active team, Up: OpenMP Runtime Library Routines [Contents][Index]
omp_get_proc_bind
– Whether theads may be moved between CPUsThis functions returns the currently active thread affinity policy, which is
set via OMP_PROC_BIND
. Possible values are omp_proc_bind_false
,
omp_proc_bind_true
, omp_proc_bind_primary
,
omp_proc_bind_master
, omp_proc_bind_close
and omp_proc_bind_spread
,
where omp_proc_bind_master
is an alias for omp_proc_bind_primary
.
Prototype: | omp_proc_bind_t omp_get_proc_bind(void); |
Interface: | integer(kind=omp_proc_bind_kind) function omp_get_proc_bind() |
OMP_PROC_BIND
– Whether theads may be moved between CPUs, OMP_PLACES
– Specifies on which CPUs the theads should be placed, GOMP_CPU_AFFINITY
– Bind threads to specific CPUs,
OpenMP specification v4.5, Section 3.2.22.