omp_set_schedule – Set the runtime scheduling method#
- Description:
Sets the runtime scheduling method. The
kind
argument can have the valueomp_sched_static
,omp_sched_dynamic
,omp_sched_guided
oromp_sched_auto
. Except foromp_sched_auto
, the chunk size is set to the value ofchunk_size
if positive, or to the default value if zero or negative. Foromp_sched_auto
thechunk_size
argument is ignored.- C/C++:
Prototype:
void omp_set_schedule(omp_sched_t kind, int chunk_size);
- Fortran:
Interface:
subroutine omp_set_schedule(kind, chunk_size)
integer(kind=omp_sched_kind) kind
integer chunk_size
- See also:
omp_get_schedule – Obtain the runtime scheduling method OMP_SCHEDULE – How threads are scheduled
- Reference:
OpenMP specification v4.5, Section 3.2.12.