HOME
| OPENMP API Specification: Version 5.0 November 2018

3  Runtime Library Routines

This chapter describes the OpenMP API runtime library routines and queryable runtime states. In this chapter, true and false are used as generic terms to simplify the description of the routines.

SVG-Viewer needed.

true means a nonzero integer value and false means an integer value of zero.

SVG-Viewer needed.

SVG-Viewer needed.

true means a logical value of .TRUE. and false means a logical value of .FALSE..

SVG-Viewer needed.

SVG-Viewer needed.

 3.1  Runtime Library Definitions
 3.2  Execution Environment Routines
  3.2.1  omp_set_num_threads
  3.2.2  omp_get_num_threads
  3.2.3  omp_get_max_threads
  3.2.4  omp_get_thread_num
  3.2.5  omp_get_num_procs
  3.2.6  omp_in_parallel
  3.2.7  omp_set_dynamic
  3.2.8  omp_get_dynamic
  3.2.9  omp_get_cancellation
  3.2.10  omp_set_nested
  3.2.11  omp_get_nested
  3.2.12  omp_set_schedule
  3.2.13  omp_get_schedule
  3.2.14  omp_get_thread_limit
  3.2.15  omp_get_supported_active_levels
  3.2.16  omp_set_max_active_levels
  3.2.17  omp_get_max_active_levels
  3.2.18  omp_get_level
  3.2.19  omp_get_ancestor_thread_num
  3.2.20  omp_get_team_size
  3.2.21  omp_get_active_level
  3.2.22  omp_in_final
  3.2.23  omp_get_proc_bind
  3.2.24  omp_get_num_places
  3.2.25  omp_get_place_num_procs
  3.2.26  omp_get_place_proc_ids
  3.2.27  omp_get_place_num
  3.2.28  omp_get_partition_num_places
  3.2.29  omp_get_partition_place_nums
  3.2.30  omp_set_affinity_format
  3.2.31  omp_get_affinity_format
  3.2.32  omp_display_affinity
  3.2.33  omp_capture_affinity
  3.2.34  omp_set_default_device
  3.2.35  omp_get_default_device
  3.2.36  omp_get_num_devices
  3.2.37  omp_get_device_num
  3.2.38  omp_get_num_teams
  3.2.39  omp_get_team_num
  3.2.40  omp_is_initial_device
  3.2.41  omp_get_initial_device
  3.2.42  omp_get_max_task_priority
  3.2.43  omp_pause_resource
  3.2.44  omp_pause_resource_all
 3.3  Lock Routines
  3.3.1  omp_init_lock and omp_init_nest_lock
  3.3.2  omp_init_lock_with_hint and
omp_init_nest_lock_with_hint

  3.3.3  omp_destroy_lock and omp_destroy_nest_lock
  3.3.4  omp_set_lock and omp_set_nest_lock
  3.3.5  omp_unset_lock and omp_unset_nest_lock
  3.3.6  omp_test_lock and omp_test_nest_lock
 3.4  Timing Routines
  3.4.1  omp_get_wtime
  3.4.2  omp_get_wtick
 3.5  Event Routine
  3.5.1  omp_fulfill_event
 3.6  Device Memory Routines
  3.6.1  omp_target_alloc
  3.6.2  omp_target_free
  3.6.3  omp_target_is_present
  3.6.4  omp_target_memcpy
  3.6.5  omp_target_memcpy_rect
  3.6.6  omp_target_associate_ptr
  3.6.7  omp_target_disassociate_ptr
 3.7  Memory Management Routines
  3.7.1  Memory Management Types
  3.7.2  omp_init_allocator
  3.7.3  omp_destroy_allocator
  3.7.4  omp_set_default_allocator
  3.7.5  omp_get_default_allocator
  3.7.6  omp_alloc
  3.7.7  omp_free
 3.8  Tool Control Routine

RestrictionsThe following restriction applies to all OpenMP runtime library routines:

SVG-Viewer needed.