]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openmp-runtime-library-routines/ompgetprocbind.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompgetprocbind.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. _omp_get_proc_bind:
7
8omp_get_proc_bind -- Whether theads may be moved between CPUs
9*************************************************************
10
11Description:
12 This functions returns the currently active thread affinity policy, which is
13 set via :envvar:`OMP_PROC_BIND`. Possible values are ``omp_proc_bind_false``,
14 ``omp_proc_bind_true``, ``omp_proc_bind_primary``,
15 ``omp_proc_bind_master``, ``omp_proc_bind_close`` and ``omp_proc_bind_spread``,
16 where ``omp_proc_bind_master`` is an alias for ``omp_proc_bind_primary``.
17
18C/C++:
19 .. list-table::
20
21 * - *Prototype*:
22 - ``omp_proc_bind_t omp_get_proc_bind(void);``
23
24Fortran:
25 .. list-table::
26
27 * - *Interface*:
28 - ``integer(kind=omp_proc_bind_kind) function omp_get_proc_bind()``
29
30See also:
31 :ref:`OMP_PROC_BIND`, :ref:`OMP_PLACES`, :ref:`GOMP_CPU_AFFINITY`,
32
33Reference:
3ed1b4ce 34 :openmp:`4.5`, Section 3.2.22.