The runtime routines described here are defined by Section 3 of the OpenMP specification in version 4.5. The routines are structured in following three parts:
omp_get_active_level
– Number of parallel regionsomp_get_ancestor_thread_num
– Ancestor thread IDomp_get_cancellation
– Whether cancellation support is enabledomp_get_default_device
– Get the default device for target regionsomp_get_dynamic
– Dynamic teams settingomp_get_initial_device
– Return device number of initial deviceomp_get_level
– Obtain the current nesting levelomp_get_max_active_levels
– Current maximum number of active regionsomp_get_max_task_priority
– Maximum priority valueomp_get_max_threads
– Maximum number of threads of parallel regionomp_get_nested
– Nested parallel regionsomp_get_num_devices
– Number of target devicesomp_get_num_procs
– Number of processors onlineomp_get_num_teams
– Number of teamsomp_get_num_threads
– Size of the active teamomp_get_proc_bind
– Whether threads may be moved between CPUsomp_get_schedule
– Obtain the runtime scheduling methodomp_get_supported_active_levels
– Maximum number of active regions supportedomp_get_team_num
– Get team numberomp_get_team_size
– Number of threads in a teamomp_get_thread_limit
– Maximum number of threadsomp_get_thread_num
– Current thread IDomp_in_parallel
– Whether a parallel region is activeomp_in_final
– Whether in final or included task regionomp_is_initial_device
– Whether executing on the host deviceomp_set_default_device
– Set the default device for target regionsomp_set_dynamic
– Enable/disable dynamic teamsomp_set_max_active_levels
– Limits the number of active parallel regionsomp_set_nested
– Enable/disable nested parallel regionsomp_set_num_threads
– Set upper team size limitomp_set_schedule
– Set the runtime scheduling methodomp_init_lock
– Initialize simple lockomp_set_lock
– Wait for and set simple lockomp_test_lock
– Test and set simple lock if availableomp_unset_lock
– Unset simple lockomp_destroy_lock
– Destroy simple lockomp_init_nest_lock
– Initialize nested lockomp_set_nest_lock
– Wait for and set nested lockomp_test_nest_lock
– Test and set nested lock if availableomp_unset_nest_lock
– Unset nested lockomp_destroy_nest_lock
– Destroy nested lockomp_get_wtick
– Get timer precisionomp_get_wtime
– Elapsed wall clock timeomp_fulfill_event
– Fulfill and destroy an OpenMP event