Purpose
Sets the value of the run-sched-var internal
control variable. Use omp_set_schedule if you want to set the
schedule type separately from the OMP_SCHEDULE environment
variable.
Prototype
void omp_set_schedule (omp_sched_t
kind, int modifier);
Parameters
- kind
- Must be one of the schedule types affinity,
auto, dynamic, guided, runtime, or static.
- modifier
- For the schedule type dynamic, guided,
orstatic, modifier is the chunk size that you want to set. Generally
it is a positive integer. If the value is less than one, the default
will be used. For the schedule type auto, modifier has no meaning.