]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | omp_set_schedule -- Set the runtime scheduling method | |
9 | ***************************************************** | |
10 | ||
11 | Description: | |
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 | ||
19 | C/C++: | |
20 | .. list-table:: | |
21 | ||
22 | * - *Prototype*: | |
23 | - ``void omp_set_schedule(omp_sched_t kind, int chunk_size);`` | |
24 | ||
25 | Fortran: | |
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 | ||
35 | See also: | |
36 | :ref:`omp_get_schedule` | |
37 | :ref:`OMP_SCHEDULE` | |
38 | ||
39 | Reference: | |
40 | :openmp:`4.5`, Section 3.2.12. |