omp_get_schedule
Purpose
Returns the run-sched-var internal control variable of the team that is processing the parallel region. The argument kind returns the type of schedule that will be used. modifier represents the chunk size that is set for applicable schedule types. run-sched-var can be set with the OMP_SCHEDULE environment variable or the omp_set_schedule function.
Prototype
int omp_get_schedule(omp_sched_t * kind, int * modifier);
Parameters
- kind
- The value returned for kind is one of the schedule types
affinity, auto, dynamic, guided, runtime, or static.Note: The affinity schedule type has been deprecated and might be removed in a future release. You can use the dynamic schedule type for a similar functionality.
- modifier
- For the schedule type dynamic, guided, or static, modifier is the chunk size that is set. For the schedule type auto, modifier has no meaning.