| 1 |
! include/omp_lib.f90.var |
| 2 |
|
| 3 |
! |
| 4 |
!//===----------------------------------------------------------------------===// |
| 5 |
!// |
| 6 |
!// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 7 |
!// See https://llvm.org/LICENSE.txt for license information. |
| 8 |
!// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 9 |
!// |
| 10 |
!//===----------------------------------------------------------------------===// |
| 11 |
! |
| 12 |
|
| 13 |
module omp_lib_kinds |
| 14 |
|
| 15 |
use, intrinsic :: iso_c_binding |
| 16 |
|
| 17 |
! Set PRIVATE by default to explicitly only export what is meant |
| 18 |
! to be exported by this MODULE. |
| 19 |
private |
| 20 |
|
| 21 |
integer, parameter, public :: omp_integer_kind = c_int |
| 22 |
integer, parameter, public :: omp_logical_kind = 4 |
| 23 |
integer, parameter, public :: omp_real_kind = c_float |
| 24 |
integer, parameter, public :: kmp_double_kind = c_double |
| 25 |
integer, parameter, public :: omp_lock_kind = c_intptr_t |
| 26 |
integer, parameter, public :: omp_nest_lock_kind = c_intptr_t |
| 27 |
integer, parameter, public :: omp_sched_kind = omp_integer_kind |
| 28 |
integer, parameter, public :: omp_proc_bind_kind = omp_integer_kind |
| 29 |
integer, parameter, public :: kmp_pointer_kind = c_intptr_t |
| 30 |
integer, parameter, public :: kmp_size_t_kind = c_size_t |
| 31 |
integer, parameter, public :: kmp_affinity_mask_kind = c_intptr_t |
| 32 |
integer, parameter, public :: kmp_cancel_kind = omp_integer_kind |
| 33 |
integer, parameter, public :: omp_sync_hint_kind = omp_integer_kind |
| 34 |
integer, parameter, public :: omp_lock_hint_kind = omp_sync_hint_kind |
| 35 |
integer, parameter, public :: omp_control_tool_kind = omp_integer_kind |
| 36 |
integer, parameter, public :: omp_control_tool_result_kind = omp_integer_kind |
| 37 |
integer, parameter, public :: omp_allocator_handle_kind = c_intptr_t |
| 38 |
integer, parameter, public :: omp_memspace_handle_kind = c_intptr_t |
| 39 |
integer, parameter, public :: omp_alloctrait_key_kind = omp_integer_kind |
| 40 |
integer, parameter, public :: omp_alloctrait_val_kind = c_intptr_t |
| 41 |
integer, parameter, public :: omp_interop_kind = c_intptr_t |
| 42 |
integer, parameter, public :: omp_interop_fr_kind = omp_integer_kind |
| 43 |
|
| 44 |
type omp_alloctrait |
| 45 |
integer(kind=omp_alloctrait_key_kind) key |
| 46 |
integer(kind=omp_alloctrait_val_kind) value |
| 47 |
end type omp_alloctrait |
| 48 |
public :: omp_alloctrait |
| 49 |
|
| 50 |
integer, parameter, public :: omp_pause_resource_kind = omp_integer_kind |
| 51 |
integer, parameter, public :: omp_depend_kind = c_intptr_t |
| 52 |
integer, parameter, public :: omp_event_handle_kind = c_intptr_t |
| 53 |
|
| 54 |
end module omp_lib_kinds |
| 55 |
|
| 56 |
module omp_lib |
| 57 |
|
| 58 |
use omp_lib_kinds |
| 59 |
|
| 60 |
! Set PRIVATE by default to explicitly only export what is meant |
| 61 |
! to be exported by this MODULE. |
| 62 |
private |
| 63 |
|
| 64 |
! Re-export definitions in omp_lib_kinds |
| 65 |
public :: omp_integer_kind |
| 66 |
public :: omp_logical_kind |
| 67 |
public :: omp_real_kind |
| 68 |
public :: kmp_double_kind |
| 69 |
public :: omp_lock_kind |
| 70 |
public :: omp_nest_lock_kind |
| 71 |
public :: omp_sched_kind |
| 72 |
public :: omp_proc_bind_kind |
| 73 |
public :: kmp_pointer_kind |
| 74 |
public :: kmp_size_t_kind |
| 75 |
public :: kmp_affinity_mask_kind |
| 76 |
public :: kmp_cancel_kind |
| 77 |
public :: omp_sync_hint_kind |
| 78 |
public :: omp_lock_hint_kind |
| 79 |
public :: omp_control_tool_kind |
| 80 |
public :: omp_control_tool_result_kind |
| 81 |
public :: omp_allocator_handle_kind |
| 82 |
public :: omp_memspace_handle_kind |
| 83 |
public :: omp_alloctrait_key_kind |
| 84 |
public :: omp_alloctrait_val_kind |
| 85 |
public :: omp_interop_kind |
| 86 |
public :: omp_interop_fr_kind |
| 87 |
public :: omp_alloctrait |
| 88 |
public :: omp_pause_resource_kind |
| 89 |
public :: omp_depend_kind |
| 90 |
public :: omp_event_handle_kind |
| 91 |
|
| 92 |
integer (kind=omp_integer_kind), parameter, public :: openmp_version = @LIBOMP_OMP_YEAR_MONTH@ |
| 93 |
integer (kind=omp_integer_kind), parameter, public :: kmp_version_major = @LIBOMP_VERSION_MAJOR@ |
| 94 |
integer (kind=omp_integer_kind), parameter, public :: kmp_version_minor = @LIBOMP_VERSION_MINOR@ |
| 95 |
integer (kind=omp_integer_kind), parameter, public :: kmp_version_build = @LIBOMP_VERSION_BUILD@ |
| 96 |
character(*) kmp_build_date |
| 97 |
parameter( kmp_build_date = '@LIBOMP_BUILD_DATE@' ) |
| 98 |
|
| 99 |
integer(kind=omp_sched_kind), parameter, public :: omp_sched_static = 1 |
| 100 |
integer(kind=omp_sched_kind), parameter, public :: omp_sched_dynamic = 2 |
| 101 |
integer(kind=omp_sched_kind), parameter, public :: omp_sched_guided = 3 |
| 102 |
integer(kind=omp_sched_kind), parameter, public :: omp_sched_auto = 4 |
| 103 |
integer(kind=omp_sched_kind), parameter, public :: omp_sched_monotonic = int(Z'80000000', kind=omp_sched_kind) |
| 104 |
|
| 105 |
integer (kind=omp_proc_bind_kind), parameter, public :: omp_proc_bind_false = 0 |
| 106 |
integer (kind=omp_proc_bind_kind), parameter, public :: omp_proc_bind_true = 1 |
| 107 |
integer (kind=omp_proc_bind_kind), parameter, public :: omp_proc_bind_master = 2 |
| 108 |
integer (kind=omp_proc_bind_kind), parameter, public :: omp_proc_bind_close = 3 |
| 109 |
integer (kind=omp_proc_bind_kind), parameter, public :: omp_proc_bind_spread = 4 |
| 110 |
|
| 111 |
integer (kind=kmp_cancel_kind), parameter, public :: kmp_cancel_parallel = 1 |
| 112 |
integer (kind=kmp_cancel_kind), parameter, public :: kmp_cancel_loop = 2 |
| 113 |
integer (kind=kmp_cancel_kind), parameter, public :: kmp_cancel_sections = 3 |
| 114 |
integer (kind=kmp_cancel_kind), parameter, public :: kmp_cancel_taskgroup = 4 |
| 115 |
|
| 116 |
integer (kind=omp_sync_hint_kind), parameter, public :: omp_sync_hint_none = 0 |
| 117 |
integer (kind=omp_sync_hint_kind), parameter, public :: omp_sync_hint_uncontended = 1 |
| 118 |
integer (kind=omp_sync_hint_kind), parameter, public :: omp_sync_hint_contended = 2 |
| 119 |
integer (kind=omp_sync_hint_kind), parameter, public :: omp_sync_hint_nonspeculative = 4 |
| 120 |
integer (kind=omp_sync_hint_kind), parameter, public :: omp_sync_hint_speculative = 8 |
| 121 |
integer (kind=omp_lock_hint_kind), parameter, public :: omp_lock_hint_none = omp_sync_hint_none |
| 122 |
integer (kind=omp_lock_hint_kind), parameter, public :: omp_lock_hint_uncontended = omp_sync_hint_uncontended |
| 123 |
integer (kind=omp_lock_hint_kind), parameter, public :: omp_lock_hint_contended = omp_sync_hint_contended |
| 124 |
integer (kind=omp_lock_hint_kind), parameter, public :: omp_lock_hint_nonspeculative = omp_sync_hint_nonspeculative |
| 125 |
integer (kind=omp_lock_hint_kind), parameter, public :: omp_lock_hint_speculative = omp_sync_hint_speculative |
| 126 |
integer (kind=omp_lock_hint_kind), parameter, public :: kmp_lock_hint_hle = 65536 |
| 127 |
integer (kind=omp_lock_hint_kind), parameter, public :: kmp_lock_hint_rtm = 131072 |
| 128 |
integer (kind=omp_lock_hint_kind), parameter, public :: kmp_lock_hint_adaptive = 262144 |
| 129 |
|
| 130 |
integer (kind=omp_control_tool_kind), parameter, public :: omp_control_tool_start = 1 |
| 131 |
integer (kind=omp_control_tool_kind), parameter, public :: omp_control_tool_pause = 2 |
| 132 |
integer (kind=omp_control_tool_kind), parameter, public :: omp_control_tool_flush = 3 |
| 133 |
integer (kind=omp_control_tool_kind), parameter, public :: omp_control_tool_end = 4 |
| 134 |
|
| 135 |
integer (kind=omp_control_tool_result_kind), parameter, public :: omp_control_tool_notool = -2 |
| 136 |
integer (kind=omp_control_tool_result_kind), parameter, public :: omp_control_tool_nocallback = -1 |
| 137 |
integer (kind=omp_control_tool_result_kind), parameter, public :: omp_control_tool_success = 0 |
| 138 |
integer (kind=omp_control_tool_result_kind), parameter, public :: omp_control_tool_ignored = 1 |
| 139 |
|
| 140 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_sync_hint = 1 |
| 141 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_alignment = 2 |
| 142 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_access = 3 |
| 143 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_pool_size = 4 |
| 144 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_fallback = 5 |
| 145 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_fb_data = 6 |
| 146 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_pinned = 7 |
| 147 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_partition = 8 |
| 148 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_pin_device = 9 |
| 149 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_preferred_device = 10 |
| 150 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_device_access = 11 |
| 151 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_target_access = 12 |
| 152 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_atomic_scope = 13 |
| 153 |
integer (kind=omp_alloctrait_key_kind), parameter, public :: omp_atk_part_size = 14 |
| 154 |
|
| 155 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_default = -1 |
| 156 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_false = 0 |
| 157 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_true = 1 |
| 158 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_contended = 3 |
| 159 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_uncontended = 4 |
| 160 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_serialized = 5 |
| 161 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_sequential = omp_atv_serialized |
| 162 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_private = 6 |
| 163 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_device = 7 |
| 164 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_thread = 8 |
| 165 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_pteam = 9 |
| 166 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_cgroup = 10 |
| 167 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_default_mem_fb = 11 |
| 168 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_null_fb = 12 |
| 169 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_abort_fb = 13 |
| 170 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_allocator_fb = 14 |
| 171 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_environment = 15 |
| 172 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_nearest = 16 |
| 173 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_blocked = 17 |
| 174 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_interleaved = 18 |
| 175 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_all = 19 |
| 176 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_single = 20 |
| 177 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_multiple = 21 |
| 178 |
integer (kind=omp_alloctrait_val_kind), parameter, public :: omp_atv_memspace = 22 |
| 179 |
|
| 180 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_null_allocator = 0 |
| 181 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_default_mem_alloc = 1 |
| 182 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_large_cap_mem_alloc = 2 |
| 183 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_const_mem_alloc = 3 |
| 184 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_high_bw_mem_alloc = 4 |
| 185 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_low_lat_mem_alloc = 5 |
| 186 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_cgroup_mem_alloc = 6 |
| 187 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_pteam_mem_alloc = 7 |
| 188 |
integer (kind=omp_allocator_handle_kind), parameter, public :: omp_thread_mem_alloc = 8 |
| 189 |
integer (kind=omp_allocator_handle_kind), parameter, public :: llvm_omp_target_host_mem_alloc = 100 |
| 190 |
integer (kind=omp_allocator_handle_kind), parameter, public :: llvm_omp_target_shared_mem_alloc = 101 |
| 191 |
integer (kind=omp_allocator_handle_kind), parameter, public :: llvm_omp_target_device_mem_alloc = 102 |
| 192 |
|
| 193 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_null_mem_space = 0 |
| 194 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_default_mem_space = 99 |
| 195 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_large_cap_mem_space = 1 |
| 196 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_const_mem_space = 2 |
| 197 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_high_bw_mem_space = 3 |
| 198 |
integer (kind=omp_memspace_handle_kind), parameter, public :: omp_low_lat_mem_space = 4 |
| 199 |
integer (kind=omp_memspace_handle_kind), parameter, public :: llvm_omp_target_host_mem_space = 100 |
| 200 |
integer (kind=omp_memspace_handle_kind), parameter, public :: llvm_omp_target_shared_mem_space = 101 |
| 201 |
integer (kind=omp_memspace_handle_kind), parameter, public :: llvm_omp_target_device_mem_space = 102 |
| 202 |
|
| 203 |
integer (kind=omp_pause_resource_kind), parameter, public :: omp_pause_resume = 0 |
| 204 |
integer (kind=omp_pause_resource_kind), parameter, public :: omp_pause_soft = 1 |
| 205 |
integer (kind=omp_pause_resource_kind), parameter, public :: omp_pause_hard = 2 |
| 206 |
integer (kind=omp_pause_resource_kind), parameter, public :: omp_pause_stop_tool = 3 |
| 207 |
|
| 208 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_cuda = 1 |
| 209 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_cuda_driver = 2 |
| 210 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_opencl = 3 |
| 211 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_sycl = 4 |
| 212 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_hip = 5 |
| 213 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_level_zero = 6 |
| 214 |
integer (kind=omp_interop_fr_kind), parameter, public :: omp_ifr_last = 7 |
| 215 |
|
| 216 |
integer (kind=omp_interop_kind), parameter, public :: omp_interop_none = 0 |
| 217 |
|
| 218 |
interface |
| 219 |
|
| 220 |
! *** |
| 221 |
! *** omp_* entry points |
| 222 |
! *** |
| 223 |
|
| 224 |
subroutine omp_set_num_threads(num_threads) bind(c) |
| 225 |
use omp_lib_kinds |
| 226 |
integer (kind=omp_integer_kind), value :: num_threads |
| 227 |
end subroutine omp_set_num_threads |
| 228 |
|
| 229 |
subroutine omp_set_dynamic(dynamic_threads) bind(c) |
| 230 |
use omp_lib_kinds |
| 231 |
logical (kind=omp_logical_kind), value :: dynamic_threads |
| 232 |
end subroutine omp_set_dynamic |
| 233 |
|
| 234 |
subroutine omp_set_nested(nested) bind(c) |
| 235 |
use omp_lib_kinds |
| 236 |
logical (kind=omp_logical_kind), value :: nested |
| 237 |
end subroutine omp_set_nested |
| 238 |
|
| 239 |
function omp_get_num_threads() bind(c) |
| 240 |
use omp_lib_kinds |
| 241 |
integer (kind=omp_integer_kind) omp_get_num_threads |
| 242 |
end function omp_get_num_threads |
| 243 |
|
| 244 |
function omp_get_max_threads() bind(c) |
| 245 |
use omp_lib_kinds |
| 246 |
integer (kind=omp_integer_kind) omp_get_max_threads |
| 247 |
end function omp_get_max_threads |
| 248 |
|
| 249 |
function omp_get_thread_num() bind(c) |
| 250 |
use omp_lib_kinds |
| 251 |
integer (kind=omp_integer_kind) omp_get_thread_num |
| 252 |
end function omp_get_thread_num |
| 253 |
|
| 254 |
function omp_get_num_procs() bind(c) |
| 255 |
use omp_lib_kinds |
| 256 |
integer (kind=omp_integer_kind) omp_get_num_procs |
| 257 |
end function omp_get_num_procs |
| 258 |
|
| 259 |
function omp_in_parallel() bind(c) |
| 260 |
use omp_lib_kinds |
| 261 |
logical (kind=omp_logical_kind) omp_in_parallel |
| 262 |
end function omp_in_parallel |
| 263 |
|
| 264 |
function omp_in_final() bind(c) |
| 265 |
use omp_lib_kinds |
| 266 |
logical (kind=omp_logical_kind) omp_in_final |
| 267 |
end function omp_in_final |
| 268 |
|
| 269 |
function omp_get_dynamic() bind(c) |
| 270 |
use omp_lib_kinds |
| 271 |
logical (kind=omp_logical_kind) omp_get_dynamic |
| 272 |
end function omp_get_dynamic |
| 273 |
|
| 274 |
function omp_get_nested() bind(c) |
| 275 |
use omp_lib_kinds |
| 276 |
logical (kind=omp_logical_kind) omp_get_nested |
| 277 |
end function omp_get_nested |
| 278 |
|
| 279 |
function omp_get_thread_limit() bind(c) |
| 280 |
use omp_lib_kinds |
| 281 |
integer (kind=omp_integer_kind) omp_get_thread_limit |
| 282 |
end function omp_get_thread_limit |
| 283 |
|
| 284 |
subroutine omp_set_max_active_levels(max_levels) bind(c) |
| 285 |
use omp_lib_kinds |
| 286 |
integer (kind=omp_integer_kind), value :: max_levels |
| 287 |
end subroutine omp_set_max_active_levels |
| 288 |
|
| 289 |
function omp_get_max_active_levels() bind(c) |
| 290 |
use omp_lib_kinds |
| 291 |
integer (kind=omp_integer_kind) omp_get_max_active_levels |
| 292 |
end function omp_get_max_active_levels |
| 293 |
|
| 294 |
function omp_get_level() bind(c) |
| 295 |
use omp_lib_kinds |
| 296 |
integer (kind=omp_integer_kind) omp_get_level |
| 297 |
end function omp_get_level |
| 298 |
|
| 299 |
function omp_get_active_level() bind(c) |
| 300 |
use omp_lib_kinds |
| 301 |
integer (kind=omp_integer_kind) omp_get_active_level |
| 302 |
end function omp_get_active_level |
| 303 |
|
| 304 |
function omp_get_ancestor_thread_num(level) bind(c) |
| 305 |
use omp_lib_kinds |
| 306 |
integer (kind=omp_integer_kind) omp_get_ancestor_thread_num |
| 307 |
integer (kind=omp_integer_kind), value :: level |
| 308 |
end function omp_get_ancestor_thread_num |
| 309 |
|
| 310 |
function omp_get_team_size(level) bind(c) |
| 311 |
use omp_lib_kinds |
| 312 |
integer (kind=omp_integer_kind) omp_get_team_size |
| 313 |
integer (kind=omp_integer_kind), value :: level |
| 314 |
end function omp_get_team_size |
| 315 |
|
| 316 |
subroutine omp_set_schedule(kind, chunk_size) bind(c) |
| 317 |
use omp_lib_kinds |
| 318 |
integer (kind=omp_sched_kind), value :: kind |
| 319 |
integer (kind=omp_integer_kind), value :: chunk_size |
| 320 |
end subroutine omp_set_schedule |
| 321 |
|
| 322 |
subroutine omp_get_schedule(kind, chunk_size) bind(c) |
| 323 |
use omp_lib_kinds |
| 324 |
integer (kind=omp_sched_kind) kind |
| 325 |
integer (kind=omp_integer_kind) chunk_size |
| 326 |
end subroutine omp_get_schedule |
| 327 |
|
| 328 |
function omp_get_proc_bind() bind(c) |
| 329 |
use omp_lib_kinds |
| 330 |
integer (kind=omp_proc_bind_kind) omp_get_proc_bind |
| 331 |
end function omp_get_proc_bind |
| 332 |
|
| 333 |
function omp_get_num_places() bind(c) |
| 334 |
use omp_lib_kinds |
| 335 |
integer (kind=omp_integer_kind) omp_get_num_places |
| 336 |
end function omp_get_num_places |
| 337 |
|
| 338 |
function omp_get_place_num_procs(place_num) bind(c) |
| 339 |
use omp_lib_kinds |
| 340 |
integer (kind=omp_integer_kind), value :: place_num |
| 341 |
integer (kind=omp_integer_kind) omp_get_place_num_procs |
| 342 |
end function omp_get_place_num_procs |
| 343 |
|
| 344 |
subroutine omp_get_place_proc_ids(place_num, ids) bind(c) |
| 345 |
use omp_lib_kinds |
| 346 |
integer (kind=omp_integer_kind), value :: place_num |
| 347 |
integer (kind=omp_integer_kind) ids(*) |
| 348 |
end subroutine omp_get_place_proc_ids |
| 349 |
|
| 350 |
function omp_get_place_num() bind(c) |
| 351 |
use omp_lib_kinds |
| 352 |
integer (kind=omp_integer_kind) omp_get_place_num |
| 353 |
end function omp_get_place_num |
| 354 |
|
| 355 |
function omp_get_partition_num_places() bind(c) |
| 356 |
use omp_lib_kinds |
| 357 |
integer (kind=omp_integer_kind) omp_get_partition_num_places |
| 358 |
end function omp_get_partition_num_places |
| 359 |
|
| 360 |
subroutine omp_get_partition_place_nums(place_nums) bind(c) |
| 361 |
use omp_lib_kinds |
| 362 |
integer (kind=omp_integer_kind) place_nums(*) |
| 363 |
end subroutine omp_get_partition_place_nums |
| 364 |
|
| 365 |
function omp_get_wtime() bind(c) |
| 366 |
use omp_lib_kinds |
| 367 |
real (kind=kmp_double_kind) omp_get_wtime |
| 368 |
end function omp_get_wtime |
| 369 |
|
| 370 |
function omp_get_wtick() bind(c) |
| 371 |
use omp_lib_kinds |
| 372 |
real (kind=kmp_double_kind) omp_get_wtick |
| 373 |
end function omp_get_wtick |
| 374 |
|
| 375 |
function omp_get_default_device() bind(c) |
| 376 |
use omp_lib_kinds |
| 377 |
integer (kind=omp_integer_kind) omp_get_default_device |
| 378 |
end function omp_get_default_device |
| 379 |
|
| 380 |
subroutine omp_set_default_device(device_num) bind(c) |
| 381 |
use omp_lib_kinds |
| 382 |
integer (kind=omp_integer_kind), value :: device_num |
| 383 |
end subroutine omp_set_default_device |
| 384 |
|
| 385 |
function omp_get_num_devices() bind(c) |
| 386 |
use omp_lib_kinds |
| 387 |
integer (kind=omp_integer_kind) omp_get_num_devices |
| 388 |
end function omp_get_num_devices |
| 389 |
|
| 390 |
function omp_get_num_teams() bind(c) |
| 391 |
use omp_lib_kinds |
| 392 |
integer (kind=omp_integer_kind) omp_get_num_teams |
| 393 |
end function omp_get_num_teams |
| 394 |
|
| 395 |
function omp_get_team_num() bind(c) |
| 396 |
use omp_lib_kinds |
| 397 |
integer (kind=omp_integer_kind) omp_get_team_num |
| 398 |
end function omp_get_team_num |
| 399 |
|
| 400 |
function omp_get_cancellation() bind(c) |
| 401 |
use omp_lib_kinds |
| 402 |
logical (kind=omp_logical_kind) omp_get_cancellation |
| 403 |
end function omp_get_cancellation |
| 404 |
|
| 405 |
function omp_is_initial_device() bind(c) |
| 406 |
use omp_lib_kinds |
| 407 |
logical (kind=omp_logical_kind) omp_is_initial_device |
| 408 |
end function omp_is_initial_device |
| 409 |
|
| 410 |
function omp_get_initial_device() bind(c) |
| 411 |
use omp_lib_kinds |
| 412 |
integer (kind=omp_integer_kind) omp_get_initial_device |
| 413 |
end function omp_get_initial_device |
| 414 |
|
| 415 |
function omp_get_device_num() bind(c) |
| 416 |
use omp_lib_kinds |
| 417 |
integer (kind=omp_integer_kind) omp_get_device_num |
| 418 |
end function omp_get_device_num |
| 419 |
|
| 420 |
function omp_pause_resource(kind, device_num) bind(c) |
| 421 |
use omp_lib_kinds |
| 422 |
integer (kind=omp_pause_resource_kind), value :: kind |
| 423 |
integer (kind=omp_integer_kind), value :: device_num |
| 424 |
integer (kind=omp_integer_kind) omp_pause_resource |
| 425 |
end function omp_pause_resource |
| 426 |
|
| 427 |
function omp_pause_resource_all(kind) bind(c) |
| 428 |
use omp_lib_kinds |
| 429 |
integer (kind=omp_pause_resource_kind), value :: kind |
| 430 |
integer (kind=omp_integer_kind) omp_pause_resource_all |
| 431 |
end function omp_pause_resource_all |
| 432 |
|
| 433 |
function omp_get_supported_active_levels() bind(c) |
| 434 |
use omp_lib_kinds |
| 435 |
integer (kind=omp_integer_kind) omp_get_supported_active_levels |
| 436 |
end function omp_get_supported_active_levels |
| 437 |
|
| 438 |
subroutine omp_fulfill_event(event) bind(c) |
| 439 |
use omp_lib_kinds |
| 440 |
integer (kind=omp_event_handle_kind), value :: event |
| 441 |
end subroutine omp_fulfill_event |
| 442 |
|
| 443 |
subroutine omp_init_lock(svar) bind(c) |
| 444 |
#ifdef __INTEL_COMPILER |
| 445 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 446 |
!DIR$ attributes known_intrinsic :: omp_init_lock |
| 447 |
!DIR$ ENDIF |
| 448 |
#endif |
| 449 |
use omp_lib_kinds |
| 450 |
integer (kind=omp_lock_kind) svar |
| 451 |
end subroutine omp_init_lock |
| 452 |
|
| 453 |
subroutine omp_destroy_lock(svar) bind(c) |
| 454 |
#ifdef __INTEL_COMPILER |
| 455 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 456 |
!DIR$ attributes known_intrinsic :: omp_destroy_lock |
| 457 |
!DIR$ ENDIF |
| 458 |
#endif |
| 459 |
use omp_lib_kinds |
| 460 |
integer (kind=omp_lock_kind) svar |
| 461 |
end subroutine omp_destroy_lock |
| 462 |
|
| 463 |
subroutine omp_set_lock(svar) bind(c) |
| 464 |
#ifdef __INTEL_COMPILER |
| 465 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 466 |
!DIR$ attributes known_intrinsic :: omp_set_lock |
| 467 |
!DIR$ ENDIF |
| 468 |
#endif |
| 469 |
use omp_lib_kinds |
| 470 |
integer (kind=omp_lock_kind) svar |
| 471 |
end subroutine omp_set_lock |
| 472 |
|
| 473 |
subroutine omp_unset_lock(svar) bind(c) |
| 474 |
#ifdef __INTEL_COMPILER |
| 475 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 476 |
!DIR$ attributes known_intrinsic :: omp_unset_lock |
| 477 |
!DIR$ ENDIF |
| 478 |
#endif |
| 479 |
use omp_lib_kinds |
| 480 |
integer (kind=omp_lock_kind) svar |
| 481 |
end subroutine omp_unset_lock |
| 482 |
|
| 483 |
function omp_test_lock(svar) bind(c) |
| 484 |
#ifdef __INTEL_COMPILER |
| 485 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 486 |
!DIR$ attributes known_intrinsic :: omp_test_lock |
| 487 |
!DIR$ ENDIF |
| 488 |
#endif |
| 489 |
use omp_lib_kinds |
| 490 |
logical (kind=omp_logical_kind) omp_test_lock |
| 491 |
integer (kind=omp_lock_kind) svar |
| 492 |
end function omp_test_lock |
| 493 |
|
| 494 |
subroutine omp_init_nest_lock(nvar) bind(c) |
| 495 |
#ifdef __INTEL_COMPILER |
| 496 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 497 |
!DIR$ attributes known_intrinsic :: omp_init_nest_lock |
| 498 |
!DIR$ ENDIF |
| 499 |
#endif |
| 500 |
use omp_lib_kinds |
| 501 |
integer (kind=omp_nest_lock_kind) nvar |
| 502 |
end subroutine omp_init_nest_lock |
| 503 |
|
| 504 |
subroutine omp_destroy_nest_lock(nvar) bind(c) |
| 505 |
#ifdef __INTEL_COMPILER |
| 506 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 507 |
!DIR$ attributes known_intrinsic :: omp_destroy_nest_lock |
| 508 |
!DIR$ ENDIF |
| 509 |
#endif |
| 510 |
use omp_lib_kinds |
| 511 |
integer (kind=omp_nest_lock_kind) nvar |
| 512 |
end subroutine omp_destroy_nest_lock |
| 513 |
|
| 514 |
subroutine omp_set_nest_lock(nvar) bind(c) |
| 515 |
#ifdef __INTEL_COMPILER |
| 516 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 517 |
!DIR$ attributes known_intrinsic :: omp_set_nest_lock |
| 518 |
!DIR$ ENDIF |
| 519 |
#endif |
| 520 |
use omp_lib_kinds |
| 521 |
integer (kind=omp_nest_lock_kind) nvar |
| 522 |
end subroutine omp_set_nest_lock |
| 523 |
|
| 524 |
subroutine omp_unset_nest_lock(nvar) bind(c) |
| 525 |
#ifdef __INTEL_COMPILER |
| 526 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 527 |
!DIR$ attributes known_intrinsic :: omp_unset_nest_lock |
| 528 |
!DIR$ ENDIF |
| 529 |
#endif |
| 530 |
use omp_lib_kinds |
| 531 |
integer (kind=omp_nest_lock_kind) nvar |
| 532 |
end subroutine omp_unset_nest_lock |
| 533 |
|
| 534 |
function omp_test_nest_lock(nvar) bind(c) |
| 535 |
#ifdef __INTEL_COMPILER |
| 536 |
!DIR$ IF(__INTEL_COMPILER.GE.1400) |
| 537 |
!DIR$ attributes known_intrinsic :: omp_test_nest_lock |
| 538 |
!DIR$ ENDIF |
| 539 |
#endif |
| 540 |
use omp_lib_kinds |
| 541 |
integer (kind=omp_integer_kind) omp_test_nest_lock |
| 542 |
integer (kind=omp_nest_lock_kind) nvar |
| 543 |
end function omp_test_nest_lock |
| 544 |
|
| 545 |
function omp_get_max_task_priority() bind(c) |
| 546 |
use omp_lib_kinds |
| 547 |
integer (kind=omp_integer_kind) omp_get_max_task_priority |
| 548 |
end function omp_get_max_task_priority |
| 549 |
|
| 550 |
subroutine omp_init_lock_with_hint(svar, hint) bind(c) |
| 551 |
use omp_lib_kinds |
| 552 |
integer (kind=omp_lock_kind) svar |
| 553 |
integer (kind=omp_lock_hint_kind), value :: hint |
| 554 |
end subroutine omp_init_lock_with_hint |
| 555 |
|
| 556 |
subroutine omp_init_nest_lock_with_hint(nvar, hint) bind(c) |
| 557 |
use omp_lib_kinds |
| 558 |
integer (kind=omp_nest_lock_kind) nvar |
| 559 |
integer (kind=omp_lock_hint_kind), value :: hint |
| 560 |
end subroutine omp_init_nest_lock_with_hint |
| 561 |
|
| 562 |
function omp_control_tool(command, modifier, arg) bind(c) |
| 563 |
use omp_lib_kinds |
| 564 |
integer (kind=omp_integer_kind) omp_control_tool |
| 565 |
integer (kind=omp_control_tool_kind), value :: command |
| 566 |
integer (kind=omp_control_tool_kind), value :: modifier |
| 567 |
integer (kind=kmp_pointer_kind), optional :: arg |
| 568 |
end function omp_control_tool |
| 569 |
|
| 570 |
function omp_init_allocator(memspace, ntraits, traits) |
| 571 |
use omp_lib_kinds |
| 572 |
integer (kind=omp_allocator_handle_kind) omp_init_allocator |
| 573 |
integer (kind=omp_memspace_handle_kind) :: memspace |
| 574 |
integer (kind=omp_integer_kind) :: ntraits |
| 575 |
type(omp_alloctrait), intent(in) :: traits(*) |
| 576 |
end function omp_init_allocator |
| 577 |
|
| 578 |
subroutine omp_destroy_allocator(allocator) bind(c) |
| 579 |
use omp_lib_kinds |
| 580 |
integer (kind=omp_allocator_handle_kind), value :: allocator |
| 581 |
end subroutine omp_destroy_allocator |
| 582 |
|
| 583 |
subroutine omp_set_default_allocator(allocator) bind(c) |
| 584 |
use omp_lib_kinds |
| 585 |
integer (kind=omp_allocator_handle_kind), value :: allocator |
| 586 |
end subroutine omp_set_default_allocator |
| 587 |
|
| 588 |
function omp_get_default_allocator() bind(c) |
| 589 |
use omp_lib_kinds |
| 590 |
integer (kind=omp_allocator_handle_kind) omp_get_default_allocator |
| 591 |
end function omp_get_default_allocator |
| 592 |
|
| 593 |
subroutine omp_set_affinity_format(format) |
| 594 |
character (len=*) :: format |
| 595 |
end subroutine omp_set_affinity_format |
| 596 |
|
| 597 |
function omp_get_affinity_format(buffer) |
| 598 |
use omp_lib_kinds |
| 599 |
character (len=*) :: buffer |
| 600 |
integer (kind=kmp_size_t_kind) :: omp_get_affinity_format |
| 601 |
end function omp_get_affinity_format |
| 602 |
|
| 603 |
subroutine omp_display_affinity(format) |
| 604 |
character (len=*) :: format |
| 605 |
end subroutine omp_display_affinity |
| 606 |
|
| 607 |
function omp_capture_affinity(buffer, format) |
| 608 |
use omp_lib_kinds |
| 609 |
character (len=*) :: format |
| 610 |
character (len=*) :: buffer |
| 611 |
integer (kind=kmp_size_t_kind) :: omp_capture_affinity |
| 612 |
end function omp_capture_affinity |
| 613 |
|
| 614 |
subroutine omp_set_num_teams(num_teams) bind(c) |
| 615 |
use omp_lib_kinds |
| 616 |
integer (kind=omp_integer_kind), value :: num_teams |
| 617 |
end subroutine omp_set_num_teams |
| 618 |
|
| 619 |
function omp_get_max_teams() bind(c) |
| 620 |
use omp_lib_kinds |
| 621 |
integer (kind=omp_integer_kind) omp_get_max_teams |
| 622 |
end function omp_get_max_teams |
| 623 |
|
| 624 |
subroutine omp_set_teams_thread_limit(thread_limit) bind(c) |
| 625 |
use omp_lib_kinds |
| 626 |
integer (kind=omp_integer_kind), value :: thread_limit |
| 627 |
end subroutine omp_set_teams_thread_limit |
| 628 |
|
| 629 |
function omp_get_teams_thread_limit() bind(c) |
| 630 |
use omp_lib_kinds |
| 631 |
integer (kind=omp_integer_kind) omp_get_teams_thread_limit |
| 632 |
end function omp_get_teams_thread_limit |
| 633 |
|
| 634 |
subroutine omp_display_env(verbose) bind(c) |
| 635 |
use omp_lib_kinds |
| 636 |
logical (kind=omp_logical_kind), value :: verbose |
| 637 |
end subroutine omp_display_env |
| 638 |
|
| 639 |
function omp_target_alloc(size, device_num) bind(c) |
| 640 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 641 |
type(c_ptr) omp_target_alloc |
| 642 |
integer(c_size_t), value :: size |
| 643 |
integer(c_int), value :: device_num |
| 644 |
end function omp_target_alloc |
| 645 |
|
| 646 |
subroutine omp_target_free(device_ptr, device_num) bind(c) |
| 647 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_int |
| 648 |
type(c_ptr), value :: device_ptr |
| 649 |
integer(c_int), value :: device_num |
| 650 |
end subroutine omp_target_free |
| 651 |
|
| 652 |
function omp_target_is_present(ptr, device_num) bind(c) |
| 653 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_int |
| 654 |
integer(c_int) omp_target_is_present |
| 655 |
type(c_ptr), value :: ptr |
| 656 |
integer(c_int), value :: device_num |
| 657 |
end function omp_target_is_present |
| 658 |
|
| 659 |
function omp_target_memcpy(dst, src, length, dst_offset, src_offset, & |
| 660 |
dst_device_num, src_device_num) bind(c) |
| 661 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 662 |
integer(c_int) omp_target_memcpy |
| 663 |
type(c_ptr), value :: dst, src |
| 664 |
integer(c_size_t), value :: length, dst_offset, src_offset |
| 665 |
integer(c_int), value :: dst_device_num, src_device_num |
| 666 |
end function omp_target_memcpy |
| 667 |
|
| 668 |
function omp_target_memcpy_rect(dst, src, element_size, num_dims, & |
| 669 |
volume, dst_offsets, src_offsets, dst_dimensions, & |
| 670 |
src_dimensions, dst_device_num, src_device_num) bind(c) |
| 671 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 672 |
integer(c_int) omp_target_memcpy_rect |
| 673 |
type(c_ptr), value :: dst, src |
| 674 |
integer(c_size_t), value :: element_size |
| 675 |
integer(c_int), value :: num_dims, dst_device_num, src_device_num |
| 676 |
integer(c_size_t), intent(in) :: volume(*), dst_offsets(*), & |
| 677 |
src_offsets(*), dst_dimensions(*), src_dimensions(*) |
| 678 |
end function omp_target_memcpy_rect |
| 679 |
|
| 680 |
function omp_target_memcpy_async(dst, src, length, dst_offset, & |
| 681 |
src_offset, dst_device_num, src_device_num, depobj_count, & |
| 682 |
depobj_list) bind(c) |
| 683 |
use omp_lib_kinds |
| 684 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 685 |
integer(c_int) omp_target_memcpy_async |
| 686 |
type(c_ptr), value :: dst, src |
| 687 |
integer(c_size_t), value :: length, dst_offset, src_offset |
| 688 |
integer(c_int), value :: dst_device_num, src_device_num, & |
| 689 |
depobj_count |
| 690 |
integer(omp_depend_kind), optional :: depobj_list(*) |
| 691 |
end function omp_target_memcpy_async |
| 692 |
|
| 693 |
function omp_target_memcpy_rect_async(dst, src, element_size, & |
| 694 |
num_dims, volume, dst_offsets, src_offsets, dst_dimensions, & |
| 695 |
src_dimensions, dst_device_num, src_device_num, depobj_count, & |
| 696 |
depobj_list) bind(c) |
| 697 |
use omp_lib_kinds |
| 698 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 699 |
integer(c_int) omp_target_memcpy_rect_async |
| 700 |
type(c_ptr), value :: dst, src |
| 701 |
integer(c_size_t), value :: element_size |
| 702 |
integer(c_int), value :: num_dims, dst_device_num, src_device_num, & |
| 703 |
depobj_count |
| 704 |
integer(c_size_t), intent(in) :: volume(*), dst_offsets(*), & |
| 705 |
src_offsets(*), dst_dimensions(*), src_dimensions(*) |
| 706 |
integer (omp_depend_kind), optional :: depobj_list(*) |
| 707 |
end function omp_target_memcpy_rect_async |
| 708 |
|
| 709 |
function omp_target_memset(ptr, val, count, device_num) bind(c) |
| 710 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 711 |
type(c_ptr) :: omp_target_memset |
| 712 |
type(c_ptr), value :: ptr |
| 713 |
integer(c_int), value :: val |
| 714 |
integer(c_size_t), value :: count |
| 715 |
integer(c_int), value :: device_num |
| 716 |
end function |
| 717 |
|
| 718 |
function omp_target_memset_async(ptr, val, count, device_num, & |
| 719 |
depobj_count, depobj_list) bind(c) |
| 720 |
use omp_lib_kinds |
| 721 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 722 |
type(c_ptr) :: omp_target_memset_async |
| 723 |
type(c_ptr), value :: ptr |
| 724 |
integer(c_int), value :: val |
| 725 |
integer(c_size_t), value :: count |
| 726 |
integer(c_int), value :: device_num |
| 727 |
integer(c_int), value :: depobj_count |
| 728 |
integer(omp_depend_kind), optional :: depobj_list(*) |
| 729 |
end function |
| 730 |
|
| 731 |
function omp_target_associate_ptr(host_ptr, device_ptr, size, & |
| 732 |
device_offset, device_num) bind(c) |
| 733 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_size_t, c_int |
| 734 |
integer(c_int) omp_target_associate_ptr |
| 735 |
type(c_ptr), value :: host_ptr, device_ptr |
| 736 |
integer(c_size_t), value :: size, device_offset |
| 737 |
integer(c_int), value :: device_num |
| 738 |
end function omp_target_associate_ptr |
| 739 |
|
| 740 |
function omp_get_mapped_ptr(ptr, device_num) bind(c) |
| 741 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_int |
| 742 |
type(c_ptr) omp_get_mapped_ptr |
| 743 |
type(c_ptr), value :: ptr |
| 744 |
integer(c_int), value :: device_num |
| 745 |
end function omp_get_mapped_ptr |
| 746 |
|
| 747 |
function omp_target_disassociate_ptr(ptr, device_num) bind(c) |
| 748 |
use, intrinsic :: iso_c_binding, only: c_ptr, c_int |
| 749 |
integer(c_int) omp_target_disassociate_ptr |
| 750 |
type(c_ptr), value :: ptr |
| 751 |
integer(c_int), value :: device_num |
| 752 |
end function omp_target_disassociate_ptr |
| 753 |
|
| 754 |
function omp_target_is_accessible(ptr, size, device_num) bind(c) |
| 755 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t, c_int |
| 756 |
integer(c_int) omp_target_is_accessible |
| 757 |
type(c_ptr), value :: ptr |
| 758 |
integer(c_size_t), value :: size |
| 759 |
integer(c_int), value :: device_num |
| 760 |
end function omp_target_is_accessible |
| 761 |
|
| 762 |
function omp_alloc(size, allocator) bind(c) |
| 763 |
use omp_lib_kinds |
| 764 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 765 |
type(c_ptr) omp_alloc |
| 766 |
integer(c_size_t), value :: size |
| 767 |
integer(omp_allocator_handle_kind), value :: allocator |
| 768 |
end function omp_alloc |
| 769 |
|
| 770 |
function omp_aligned_alloc(alignment, size, allocator) bind(c) |
| 771 |
use omp_lib_kinds |
| 772 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 773 |
type(c_ptr) omp_aligned_alloc |
| 774 |
integer(c_size_t), value :: alignment, size |
| 775 |
integer(omp_allocator_handle_kind), value :: allocator |
| 776 |
end function omp_aligned_alloc |
| 777 |
|
| 778 |
function omp_calloc(nmemb, size, allocator) bind(c) |
| 779 |
use omp_lib_kinds |
| 780 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 781 |
type(c_ptr) omp_calloc |
| 782 |
integer(c_size_t), value :: nmemb, size |
| 783 |
integer(omp_allocator_handle_kind), value :: allocator |
| 784 |
end function omp_calloc |
| 785 |
|
| 786 |
function omp_aligned_calloc(alignment, nmemb, size, allocator) bind(c) |
| 787 |
use omp_lib_kinds |
| 788 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 789 |
type(c_ptr) omp_aligned_calloc |
| 790 |
integer(c_size_t), value :: alignment, nmemb, size |
| 791 |
integer(omp_allocator_handle_kind), value :: allocator |
| 792 |
end function omp_aligned_calloc |
| 793 |
|
| 794 |
function omp_realloc(ptr, size, allocator, free_allocator) bind(c) |
| 795 |
use omp_lib_kinds |
| 796 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 797 |
type(c_ptr) omp_realloc |
| 798 |
type(c_ptr), value :: ptr |
| 799 |
integer(c_size_t), value :: size |
| 800 |
integer(omp_allocator_handle_kind), value :: allocator |
| 801 |
integer(omp_allocator_handle_kind), value :: free_allocator |
| 802 |
end function omp_realloc |
| 803 |
|
| 804 |
subroutine omp_free(ptr, allocator) bind(c) |
| 805 |
use omp_lib_kinds |
| 806 |
use, intrinsic :: iso_c_binding, only : c_ptr |
| 807 |
type(c_ptr), value :: ptr |
| 808 |
integer(omp_allocator_handle_kind), value :: allocator |
| 809 |
end subroutine omp_free |
| 810 |
|
| 811 |
function omp_in_explicit_task() bind(c) |
| 812 |
use omp_lib_kinds |
| 813 |
logical (kind=omp_logical_kind) omp_in_explicit_task |
| 814 |
end function omp_in_explicit_task |
| 815 |
|
| 816 |
function omp_get_devices_memspace(ndevs, devs, memspace) |
| 817 |
use omp_lib_kinds |
| 818 |
integer(omp_memspace_handle_kind) :: omp_get_devices_memspace |
| 819 |
integer, intent(in) :: ndevs |
| 820 |
integer, intent(in) :: devs(*) |
| 821 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 822 |
end function omp_get_devices_memspace |
| 823 |
|
| 824 |
function omp_get_device_memspace(dev, memspace) |
| 825 |
use omp_lib_kinds |
| 826 |
integer(omp_memspace_handle_kind) :: omp_get_device_memspace |
| 827 |
integer, intent(in) :: dev |
| 828 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 829 |
end function omp_get_device_memspace |
| 830 |
|
| 831 |
function omp_get_devices_and_host_memspace(ndevs, devs, memspace) |
| 832 |
use omp_lib_kinds |
| 833 |
integer(omp_memspace_handle_kind) :: & |
| 834 |
omp_get_devices_and_host_memspace |
| 835 |
integer, intent(in) :: ndevs |
| 836 |
integer, intent(in) :: devs(*) |
| 837 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 838 |
end function omp_get_devices_and_host_memspace |
| 839 |
|
| 840 |
function omp_get_device_and_host_memspace(dev, memspace) |
| 841 |
use omp_lib_kinds |
| 842 |
integer(omp_memspace_handle_kind) :: & |
| 843 |
omp_get_device_and_host_memspace |
| 844 |
integer, intent(in) :: dev |
| 845 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 846 |
end function omp_get_device_and_host_memspace |
| 847 |
|
| 848 |
function omp_get_devices_all_memspace(memspace) |
| 849 |
use omp_lib_kinds |
| 850 |
integer(omp_memspace_handle_kind) :: omp_get_devices_all_memspace |
| 851 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 852 |
end function omp_get_devices_all_memspace |
| 853 |
|
| 854 |
function omp_get_devices_allocator(ndevs, devs, memspace) |
| 855 |
use omp_lib_kinds |
| 856 |
integer(omp_allocator_handle_kind) :: omp_get_devices_allocator |
| 857 |
integer, intent(in) :: ndevs |
| 858 |
integer, intent(in) :: devs(*) |
| 859 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 860 |
end function omp_get_devices_allocator |
| 861 |
|
| 862 |
function omp_get_device_allocator(dev, memspace) |
| 863 |
use omp_lib_kinds |
| 864 |
integer(omp_allocator_handle_kind) :: omp_get_device_allocator |
| 865 |
integer, intent(in) :: dev |
| 866 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 867 |
end function omp_get_device_allocator |
| 868 |
|
| 869 |
function omp_get_devices_and_host_allocator(ndevs, devs, memspace) |
| 870 |
use omp_lib_kinds |
| 871 |
integer(omp_allocator_handle_kind) :: & |
| 872 |
omp_get_devices_and_host_allocator |
| 873 |
integer, intent(in) :: ndevs |
| 874 |
integer, intent(in) :: devs(*) |
| 875 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 876 |
end function omp_get_devices_and_host_allocator |
| 877 |
|
| 878 |
function omp_get_device_and_host_allocator(dev, memspace) |
| 879 |
use omp_lib_kinds |
| 880 |
integer(omp_allocator_handle_kind) :: & |
| 881 |
omp_get_device_and_host_allocator |
| 882 |
integer, intent(in) :: dev |
| 883 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 884 |
end function omp_get_device_and_host_allocator |
| 885 |
|
| 886 |
function omp_get_devices_all_allocator(memspace) |
| 887 |
use omp_lib_kinds |
| 888 |
integer(omp_allocator_handle_kind) :: & |
| 889 |
omp_get_devices_all_allocator |
| 890 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 891 |
end function omp_get_devices_all_allocator |
| 892 |
|
| 893 |
function omp_get_memspace_num_resources(memspace) |
| 894 |
use omp_lib_kinds |
| 895 |
integer omp_get_memspace_num_resources |
| 896 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 897 |
end function omp_get_memspace_num_resources |
| 898 |
|
| 899 |
function omp_get_submemspace(memspace, num_resources, resources) |
| 900 |
use omp_lib_kinds |
| 901 |
integer(omp_memspace_handle_kind) omp_get_submemspace |
| 902 |
integer(omp_memspace_handle_kind), intent(in) :: memspace |
| 903 |
integer, intent(in) :: num_resources |
| 904 |
integer, intent(in) :: resources(*) |
| 905 |
end function omp_get_submemspace |
| 906 |
|
| 907 |
! *** |
| 908 |
! *** kmp_* entry points |
| 909 |
! *** |
| 910 |
|
| 911 |
subroutine kmp_set_stacksize(size) bind(c) |
| 912 |
use omp_lib_kinds |
| 913 |
integer (kind=omp_integer_kind), value :: size |
| 914 |
end subroutine kmp_set_stacksize |
| 915 |
|
| 916 |
subroutine kmp_set_stacksize_s(size) bind(c) |
| 917 |
use omp_lib_kinds |
| 918 |
integer (kind=kmp_size_t_kind), value :: size |
| 919 |
end subroutine kmp_set_stacksize_s |
| 920 |
|
| 921 |
subroutine kmp_set_blocktime(msec) bind(c) |
| 922 |
use omp_lib_kinds |
| 923 |
integer (kind=omp_integer_kind), value :: msec |
| 924 |
end subroutine kmp_set_blocktime |
| 925 |
|
| 926 |
subroutine kmp_set_library_serial() bind(c) |
| 927 |
end subroutine kmp_set_library_serial |
| 928 |
|
| 929 |
subroutine kmp_set_library_turnaround() bind(c) |
| 930 |
end subroutine kmp_set_library_turnaround |
| 931 |
|
| 932 |
subroutine kmp_set_library_throughput() bind(c) |
| 933 |
end subroutine kmp_set_library_throughput |
| 934 |
|
| 935 |
subroutine kmp_set_library(libnum) bind(c) |
| 936 |
use omp_lib_kinds |
| 937 |
integer (kind=omp_integer_kind), value :: libnum |
| 938 |
end subroutine kmp_set_library |
| 939 |
|
| 940 |
subroutine kmp_set_defaults(string) |
| 941 |
character (len=*) :: string |
| 942 |
end subroutine kmp_set_defaults |
| 943 |
|
| 944 |
function kmp_get_stacksize() bind(c) |
| 945 |
use omp_lib_kinds |
| 946 |
integer (kind=omp_integer_kind) kmp_get_stacksize |
| 947 |
end function kmp_get_stacksize |
| 948 |
|
| 949 |
function kmp_get_stacksize_s() bind(c) |
| 950 |
use omp_lib_kinds |
| 951 |
integer (kind=kmp_size_t_kind) kmp_get_stacksize_s |
| 952 |
end function kmp_get_stacksize_s |
| 953 |
|
| 954 |
function kmp_get_blocktime() bind(c) |
| 955 |
use omp_lib_kinds |
| 956 |
integer (kind=omp_integer_kind) kmp_get_blocktime |
| 957 |
end function kmp_get_blocktime |
| 958 |
|
| 959 |
function kmp_get_library() bind(c) |
| 960 |
use omp_lib_kinds |
| 961 |
integer (kind=omp_integer_kind) kmp_get_library |
| 962 |
end function kmp_get_library |
| 963 |
|
| 964 |
subroutine kmp_set_disp_num_buffers(num) bind(c) |
| 965 |
use omp_lib_kinds |
| 966 |
integer (kind=omp_integer_kind), value :: num |
| 967 |
end subroutine kmp_set_disp_num_buffers |
| 968 |
|
| 969 |
function kmp_set_affinity(mask) bind(c) |
| 970 |
use omp_lib_kinds |
| 971 |
integer (kind=omp_integer_kind) kmp_set_affinity |
| 972 |
integer (kind=kmp_affinity_mask_kind) mask |
| 973 |
end function kmp_set_affinity |
| 974 |
|
| 975 |
function kmp_get_affinity(mask) bind(c) |
| 976 |
use omp_lib_kinds |
| 977 |
integer (kind=omp_integer_kind) kmp_get_affinity |
| 978 |
integer (kind=kmp_affinity_mask_kind) mask |
| 979 |
end function kmp_get_affinity |
| 980 |
|
| 981 |
function kmp_get_affinity_max_proc() bind(c) |
| 982 |
use omp_lib_kinds |
| 983 |
integer (kind=omp_integer_kind) kmp_get_affinity_max_proc |
| 984 |
end function kmp_get_affinity_max_proc |
| 985 |
|
| 986 |
subroutine kmp_create_affinity_mask(mask) bind(c) |
| 987 |
use omp_lib_kinds |
| 988 |
integer (kind=kmp_affinity_mask_kind) mask |
| 989 |
end subroutine kmp_create_affinity_mask |
| 990 |
|
| 991 |
subroutine kmp_destroy_affinity_mask(mask) bind(c) |
| 992 |
use omp_lib_kinds |
| 993 |
integer (kind=kmp_affinity_mask_kind) mask |
| 994 |
end subroutine kmp_destroy_affinity_mask |
| 995 |
|
| 996 |
function kmp_set_affinity_mask_proc(proc, mask) bind(c) |
| 997 |
use omp_lib_kinds |
| 998 |
integer (kind=omp_integer_kind) kmp_set_affinity_mask_proc |
| 999 |
integer (kind=omp_integer_kind), value :: proc |
| 1000 |
integer (kind=kmp_affinity_mask_kind) mask |
| 1001 |
end function kmp_set_affinity_mask_proc |
| 1002 |
|
| 1003 |
function kmp_unset_affinity_mask_proc(proc, mask) bind(c) |
| 1004 |
use omp_lib_kinds |
| 1005 |
integer (kind=omp_integer_kind) kmp_unset_affinity_mask_proc |
| 1006 |
integer (kind=omp_integer_kind), value :: proc |
| 1007 |
integer (kind=kmp_affinity_mask_kind) mask |
| 1008 |
end function kmp_unset_affinity_mask_proc |
| 1009 |
|
| 1010 |
function kmp_get_affinity_mask_proc(proc, mask) bind(c) |
| 1011 |
use omp_lib_kinds |
| 1012 |
integer (kind=omp_integer_kind) kmp_get_affinity_mask_proc |
| 1013 |
integer (kind=omp_integer_kind), value :: proc |
| 1014 |
integer (kind=kmp_affinity_mask_kind) mask |
| 1015 |
end function kmp_get_affinity_mask_proc |
| 1016 |
|
| 1017 |
function kmp_malloc(size) bind(c) |
| 1018 |
use omp_lib_kinds |
| 1019 |
integer (kind=kmp_pointer_kind) kmp_malloc |
| 1020 |
integer (kind=kmp_size_t_kind), value :: size |
| 1021 |
end function kmp_malloc |
| 1022 |
|
| 1023 |
function kmp_aligned_malloc(size, alignment) bind(c) |
| 1024 |
use omp_lib_kinds |
| 1025 |
integer (kind=kmp_pointer_kind) kmp_aligned_malloc |
| 1026 |
integer (kind=kmp_size_t_kind), value :: size |
| 1027 |
integer (kind=kmp_size_t_kind), value :: alignment |
| 1028 |
end function kmp_aligned_malloc |
| 1029 |
|
| 1030 |
function kmp_calloc(nelem, elsize) bind(c) |
| 1031 |
use omp_lib_kinds |
| 1032 |
integer (kind=kmp_pointer_kind) kmp_calloc |
| 1033 |
integer (kind=kmp_size_t_kind), value :: nelem |
| 1034 |
integer (kind=kmp_size_t_kind), value :: elsize |
| 1035 |
end function kmp_calloc |
| 1036 |
|
| 1037 |
function kmp_realloc(ptr, size) bind(c) |
| 1038 |
use omp_lib_kinds |
| 1039 |
integer (kind=kmp_pointer_kind) kmp_realloc |
| 1040 |
integer (kind=kmp_pointer_kind), value :: ptr |
| 1041 |
integer (kind=kmp_size_t_kind), value :: size |
| 1042 |
end function kmp_realloc |
| 1043 |
|
| 1044 |
subroutine kmp_free(ptr) bind(c) |
| 1045 |
use omp_lib_kinds |
| 1046 |
integer (kind=kmp_pointer_kind), value :: ptr |
| 1047 |
end subroutine kmp_free |
| 1048 |
|
| 1049 |
subroutine kmp_set_warnings_on() bind(c) |
| 1050 |
end subroutine kmp_set_warnings_on |
| 1051 |
|
| 1052 |
subroutine kmp_set_warnings_off() bind(c) |
| 1053 |
end subroutine kmp_set_warnings_off |
| 1054 |
|
| 1055 |
function kmp_get_cancellation_status(cancelkind) bind(c) |
| 1056 |
use omp_lib_kinds |
| 1057 |
integer (kind=kmp_cancel_kind), value :: cancelkind |
| 1058 |
logical (kind=omp_logical_kind) kmp_get_cancellation_status |
| 1059 |
end function kmp_get_cancellation_status |
| 1060 |
|
| 1061 |
end interface |
| 1062 |
|
| 1063 |
! make the above routine definitions public |
| 1064 |
public :: omp_set_num_threads |
| 1065 |
public :: omp_set_dynamic |
| 1066 |
public :: omp_set_nested |
| 1067 |
public :: omp_get_num_threads |
| 1068 |
public :: omp_get_max_threads |
| 1069 |
public :: omp_get_thread_num |
| 1070 |
public :: omp_get_num_procs |
| 1071 |
public :: omp_in_parallel |
| 1072 |
public :: omp_in_final |
| 1073 |
public :: omp_get_dynamic |
| 1074 |
public :: omp_get_nested |
| 1075 |
public :: omp_get_thread_limit |
| 1076 |
public :: omp_set_max_active_levels |
| 1077 |
public :: omp_get_max_active_levels |
| 1078 |
public :: omp_get_level |
| 1079 |
public :: omp_get_active_level |
| 1080 |
public :: omp_get_ancestor_thread_num |
| 1081 |
public :: omp_get_team_size |
| 1082 |
public :: omp_set_schedule |
| 1083 |
public :: omp_get_schedule |
| 1084 |
public :: omp_get_proc_bind |
| 1085 |
public :: omp_get_num_places |
| 1086 |
public :: omp_get_place_num_procs |
| 1087 |
public :: omp_get_place_proc_ids |
| 1088 |
public :: omp_get_place_num |
| 1089 |
public :: omp_get_partition_num_places |
| 1090 |
public :: omp_get_partition_place_nums |
| 1091 |
public :: omp_get_wtime |
| 1092 |
public :: omp_get_wtick |
| 1093 |
public :: omp_get_default_device |
| 1094 |
public :: omp_set_default_device |
| 1095 |
public :: omp_get_num_devices |
| 1096 |
public :: omp_get_num_teams |
| 1097 |
public :: omp_get_team_num |
| 1098 |
public :: omp_get_cancellation |
| 1099 |
public :: omp_is_initial_device |
| 1100 |
public :: omp_get_initial_device |
| 1101 |
public :: omp_get_device_num |
| 1102 |
public :: omp_pause_resource |
| 1103 |
public :: omp_pause_resource_all |
| 1104 |
public :: omp_get_supported_active_levels |
| 1105 |
public :: omp_fulfill_event |
| 1106 |
public :: omp_init_lock |
| 1107 |
public :: omp_destroy_lock |
| 1108 |
public :: omp_set_lock |
| 1109 |
public :: omp_unset_lock |
| 1110 |
public :: omp_test_lock |
| 1111 |
public :: omp_init_nest_lock |
| 1112 |
public :: omp_destroy_nest_lock |
| 1113 |
public :: omp_set_nest_lock |
| 1114 |
public :: omp_unset_nest_lock |
| 1115 |
public :: omp_test_nest_lock |
| 1116 |
public :: omp_get_max_task_priority |
| 1117 |
public :: omp_init_lock_with_hint |
| 1118 |
public :: omp_init_nest_lock_with_hint |
| 1119 |
public :: omp_control_tool |
| 1120 |
public :: omp_init_allocator |
| 1121 |
public :: omp_destroy_allocator |
| 1122 |
public :: omp_set_default_allocator |
| 1123 |
public :: omp_get_default_allocator |
| 1124 |
public :: omp_set_affinity_format |
| 1125 |
public :: omp_get_affinity_format |
| 1126 |
public :: omp_display_affinity |
| 1127 |
public :: omp_capture_affinity |
| 1128 |
public :: omp_set_num_teams |
| 1129 |
public :: omp_get_max_teams |
| 1130 |
public :: omp_set_teams_thread_limit |
| 1131 |
public :: omp_get_teams_thread_limit |
| 1132 |
public :: omp_display_env |
| 1133 |
public :: omp_target_alloc |
| 1134 |
public :: omp_target_free |
| 1135 |
public :: omp_target_is_present |
| 1136 |
public :: omp_target_memcpy |
| 1137 |
public :: omp_target_memcpy_rect |
| 1138 |
public :: omp_target_memcpy_async |
| 1139 |
public :: omp_target_memcpy_rect_async |
| 1140 |
public :: omp_target_memset |
| 1141 |
public :: omp_target_memset_async |
| 1142 |
public :: omp_target_associate_ptr |
| 1143 |
public :: omp_get_mapped_ptr |
| 1144 |
public :: omp_target_disassociate_ptr |
| 1145 |
public :: omp_target_is_accessible |
| 1146 |
public :: omp_alloc |
| 1147 |
public :: omp_aligned_alloc |
| 1148 |
public :: omp_calloc |
| 1149 |
public :: omp_aligned_calloc |
| 1150 |
public :: omp_realloc |
| 1151 |
public :: omp_free |
| 1152 |
public :: omp_in_explicit_task |
| 1153 |
public :: kmp_set_stacksize |
| 1154 |
public :: kmp_set_stacksize_s |
| 1155 |
public :: kmp_set_blocktime |
| 1156 |
public :: kmp_set_library_serial |
| 1157 |
public :: kmp_set_library_turnaround |
| 1158 |
public :: kmp_set_library_throughput |
| 1159 |
public :: kmp_set_library |
| 1160 |
public :: kmp_set_defaults |
| 1161 |
public :: kmp_get_stacksize |
| 1162 |
public :: kmp_get_stacksize_s |
| 1163 |
public :: kmp_get_blocktime |
| 1164 |
public :: kmp_get_library |
| 1165 |
public :: kmp_set_disp_num_buffers |
| 1166 |
public :: kmp_set_affinity |
| 1167 |
public :: kmp_get_affinity |
| 1168 |
public :: kmp_get_affinity_max_proc |
| 1169 |
public :: kmp_create_affinity_mask |
| 1170 |
public :: kmp_destroy_affinity_mask |
| 1171 |
public :: kmp_set_affinity_mask_proc |
| 1172 |
public :: kmp_unset_affinity_mask_proc |
| 1173 |
public :: kmp_get_affinity_mask_proc |
| 1174 |
public :: kmp_malloc |
| 1175 |
public :: kmp_aligned_malloc |
| 1176 |
public :: kmp_calloc |
| 1177 |
public :: kmp_realloc |
| 1178 |
public :: kmp_free |
| 1179 |
public :: kmp_set_warnings_on |
| 1180 |
public :: kmp_set_warnings_off |
| 1181 |
public :: kmp_get_cancellation_status |
| 1182 |
|
| 1183 |
end module omp_lib |