HOME
| OPENMP API Specification: Version 5.1 November 2020

3.2.12  omp_get_schedule

Summary The omp_get_schedule routine returns the schedule that is applied when the runtime schedule is used.

Format

SVG-Viewer needed.

 

 
void omp_get_schedule(omp_sched_t *kind, int *chunk_size);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_get_schedule(kind, chunk_size) 
integer (kind=omp_sched_kind) kind 
integer chunk_size  

SVG-Viewer needed.

Binding The binding task set for an omp_get_schedule region is the generating task.

Effect This routine returns the run-sched-var ICV in the task to which the routine binds. The first argument kind returns the schedule to be used. It can be any of the standard schedule kinds as defined in Section 3.2.11, or any implementation-specific schedule kind. The second argument chunk_size returns the chunk size to be used, or a value less than 1 if the default chunk size is to be used, if the returned schedule kind is static, dynamic, or guided. The value returned by the second argument is implementation defined for any other schedule kinds.

Cross References