]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openmp-runtime-library-routines/ompsetschedule.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompsetschedule.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_set_schedule:
7
8omp_set_schedule -- Set the runtime scheduling method
9*****************************************************
10
11Description:
12 Sets the runtime scheduling method. The :samp:`{kind}` argument can have the
13 value ``omp_sched_static``, ``omp_sched_dynamic``,
14 ``omp_sched_guided`` or ``omp_sched_auto``. Except for
15 ``omp_sched_auto``, the chunk size is set to the value of
16 :samp:`{chunk_size}` if positive, or to the default value if zero or negative.
17 For ``omp_sched_auto`` the :samp:`{chunk_size}` argument is ignored.
18
19C/C++:
20 .. list-table::
21
22 * - *Prototype*:
23 - ``void omp_set_schedule(omp_sched_t kind, int chunk_size);``
24
25Fortran:
26 .. list-table::
27
28 * - *Interface*:
29 - ``subroutine omp_set_schedule(kind, chunk_size)``
30 * -
31 - ``integer(kind=omp_sched_kind) kind``
32 * -
33 - ``integer chunk_size``
34
35See also:
36 :ref:`omp_get_schedule`
37 :ref:`OMP_SCHEDULE`
38
39Reference:
3ed1b4ce 40 :openmp:`4.5`, Section 3.2.12.