HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

18  Runtime Library Routines

This chapter describes the OpenMP API runtime library routines and queryable runtime states. All OpenMP Runtime API names have an omp_ prefix. Names that begin with the ompx_ prefix are reserved for implementation-defined extensions to the OpenMP Runtime API. In this chapter, true and false are used as generic terms to simplify the description of the routines.

true means a non-zero integer value and false means an integer value of zero.
true means a logical value of .TRUE. and false means a logical value of .FALSE..

Restrictions

The following restrictions apply to all OpenMP runtime library routines:

  18.2.7  omp_get_dynamic
  18.2.8  omp_get_cancellation
  18.2.9  omp_set_nested (Deprecated)
  18.2.10  omp_get_nested (Deprecated)
  18.2.11  omp_set_schedule
  18.2.12  omp_get_schedule
  18.2.13  omp_get_thread_limit
  18.2.14  omp_get_supported_active_levels
  18.2.15  omp_set_max_active_levels
  18.2.16  omp_get_max_active_levels
  18.2.17  omp_get_level
  18.2.18  omp_get_ancestor_thread_num
  18.2.19  omp_get_team_size
  18.2.20  omp_get_active_level
 18.3  Thread Affinity Routines
  18.3.1  omp_get_proc_bind
  18.3.2  omp_get_num_places
  18.3.3  omp_get_place_num_procs
  18.3.4  omp_get_place_proc_ids
  18.3.5  omp_get_place_num
  18.3.6  omp_get_partition_num_places
  18.3.7  omp_get_partition_place_nums
  18.3.8  omp_set_affinity_format
  18.3.9  omp_get_affinity_format
  18.3.10  omp_display_affinity
  18.3.11  omp_capture_affinity
 18.4  Teams Region Routines
  18.4.1  omp_get_num_teams
  18.4.2  omp_get_team_num
  18.4.3  omp_set_num_teams
  18.4.4  omp_get_max_teams
  18.4.5  omp_set_teams_thread_limit
  18.4.6  omp_get_teams_thread_limit
 18.5  Tasking Routines
  18.5.1  omp_get_max_task_priority
  18.5.2  omp_in_explicit_task
  18.5.3  omp_in_final
 18.6  Resource Relinquishing Routines
  18.6.1  omp_pause_resource
  18.6.2  omp_pause_resource_all
 18.7  Device Information Routines
  18.7.1  omp_get_num_procs
  18.7.2  omp_set_default_device
  18.7.3  omp_get_default_device
  18.7.4  omp_get_num_devices
  18.7.5  omp_get_device_num
  18.7.6  omp_is_initial_device
  18.7.7  omp_get_initial_device
 18.8  Device Memory Routines
  18.8.1  omp_target_alloc
  18.8.2  omp_target_free
  18.8.3  omp_target_is_present
  18.8.4  omp_target_is_accessible
  18.8.5  omp_target_memcpy
  18.8.6  omp_target_memcpy_rect
  18.8.7  omp_target_memcpy_async
  18.8.8  omp_target_memcpy_rect_async
  18.8.9  omp_target_associate_ptr
  18.8.10  omp_target_disassociate_ptr
  18.8.11  omp_get_mapped_ptr
 18.9  Lock Routines
  18.9.1  omp_init_lock and omp_init_nest_lock
  18.9.2  omp_init_lock_with_hint and omp_init_nest_lock_with_hint
  18.9.3  omp_destroy_lock and omp_destroy_nest_lock
  18.9.4  omp_set_lock and omp_set_nest_lock
  18.9.5  omp_unset_lock and omp_unset_nest_lock
  18.9.6  omp_test_lock and omp_test_nest_lock
 18.10  Timing Routines
  18.10.1  omp_get_wtime
  18.10.2  omp_get_wtick
 18.11  Event Routine
  18.11.1  omp_fulfill_event
 18.12  Interoperability Routines
  18.12.1  omp_get_num_interop_properties
  18.12.2  omp_get_interop_int
  18.12.3  omp_get_interop_ptr
  18.12.4  omp_get_interop_str
  18.12.5  omp_get_interop_name
  18.12.6  omp_get_interop_type_desc
  18.12.7  omp_get_interop_rc_desc
 18.13  Memory Management Routines
  18.13.1  Memory Management Types
  18.13.2  omp_init_allocator
  18.13.3  omp_destroy_allocator
  18.13.4  omp_set_default_allocator
  18.13.5  omp_get_default_allocator
  18.13.6  omp_alloc and omp_aligned_alloc
  18.13.7  omp_free
  18.13.8  omp_calloc and omp_aligned_calloc
  18.13.9  omp_realloc
 18.14  Tool Control Routine
 18.15  Environment Display Routine