| 1 |
! Copyright (C) 2005-2025 Free Software Foundation, Inc. |
| 2 |
! Contributed by Jakub Jelinek <[email protected]>. |
| 3 |
|
| 4 |
! This file is part of the GNU Offloading and Multi Processing Library |
| 5 |
! (libgomp). |
| 6 |
|
| 7 |
! Libgomp is free software; you can redistribute it and/or modify it |
| 8 |
! under the terms of the GNU General Public License as published by |
| 9 |
! the Free Software Foundation; either version 3, or (at your option) |
| 10 |
! any later version. |
| 11 |
|
| 12 |
! Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 |
! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 14 |
! FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 15 |
! more details. |
| 16 |
|
| 17 |
! Under Section 7 of GPL version 3, you are granted additional |
| 18 |
! permissions described in the GCC Runtime Library Exception, version |
| 19 |
! 3.1, as published by the Free Software Foundation. |
| 20 |
|
| 21 |
! You should have received a copy of the GNU General Public License and |
| 22 |
! a copy of the GCC Runtime Library Exception along with this program; |
| 23 |
! see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
| 24 |
! <http://www.gnu.org/licenses/>. |
| 25 |
|
| 26 |
module omp_lib_kinds |
| 27 |
use iso_c_binding, only: c_int, c_intptr_t |
| 28 |
implicit none |
| 29 |
private :: c_int, c_intptr_t |
| 30 |
integer, parameter :: omp_lock_kind = @OMP_LOCK_KIND@ |
| 31 |
integer, parameter :: omp_nest_lock_kind = @OMP_NEST_LOCK_KIND@ |
| 32 |
integer, parameter :: omp_sched_kind = 4 |
| 33 |
integer, parameter :: omp_proc_bind_kind = 4 |
| 34 |
integer, parameter :: omp_sync_hint_kind = 4 |
| 35 |
integer, parameter :: omp_lock_hint_kind = omp_sync_hint_kind |
| 36 |
integer, parameter :: omp_pause_resource_kind = 4 |
| 37 |
integer, parameter :: omp_allocator_handle_kind = c_intptr_t |
| 38 |
integer, parameter :: omp_alloctrait_key_kind = c_int |
| 39 |
integer, parameter :: omp_alloctrait_val_kind = c_intptr_t |
| 40 |
integer, parameter :: omp_memspace_handle_kind = c_intptr_t |
| 41 |
integer, parameter :: omp_depend_kind = @OMP_DEPEND_KIND@ |
| 42 |
integer, parameter :: omp_event_handle_kind = c_intptr_t |
| 43 |
integer, parameter :: omp_interop_kind = c_intptr_t |
| 44 |
integer, parameter :: omp_interop_fr_kind = c_int |
| 45 |
integer, parameter :: omp_interop_property_kind = c_int |
| 46 |
integer, parameter :: omp_interop_rc_kind = c_int |
| 47 |
integer (omp_sched_kind), parameter :: omp_sched_static = 1 |
| 48 |
integer (omp_sched_kind), parameter :: omp_sched_dynamic = 2 |
| 49 |
integer (omp_sched_kind), parameter :: omp_sched_guided = 3 |
| 50 |
integer (omp_sched_kind), parameter :: omp_sched_auto = 4 |
| 51 |
integer (omp_proc_bind_kind), & |
| 52 |
parameter :: omp_proc_bind_false = 0 |
| 53 |
integer (omp_proc_bind_kind), & |
| 54 |
parameter :: omp_proc_bind_true = 1 |
| 55 |
integer (omp_proc_bind_kind), & |
| 56 |
parameter :: omp_proc_bind_primary = 2 |
| 57 |
integer (omp_proc_bind_kind), & |
| 58 |
parameter :: omp_proc_bind_master = 2 |
| 59 |
integer (omp_proc_bind_kind), & |
| 60 |
parameter :: omp_proc_bind_close = 3 |
| 61 |
integer (omp_proc_bind_kind), & |
| 62 |
parameter :: omp_proc_bind_spread = 4 |
| 63 |
integer (omp_lock_hint_kind), & |
| 64 |
parameter :: omp_sync_hint_none = 0 |
| 65 |
integer (omp_lock_hint_kind), & |
| 66 |
parameter :: omp_lock_hint_none = omp_sync_hint_none |
| 67 |
integer (omp_lock_hint_kind), & |
| 68 |
parameter :: omp_sync_hint_uncontended = 1 |
| 69 |
integer (omp_lock_hint_kind), & |
| 70 |
parameter :: omp_lock_hint_uncontended & |
| 71 |
= omp_sync_hint_uncontended |
| 72 |
integer (omp_lock_hint_kind), & |
| 73 |
parameter :: omp_sync_hint_contended = 2 |
| 74 |
integer (omp_lock_hint_kind), & |
| 75 |
parameter :: omp_lock_hint_contended & |
| 76 |
= omp_sync_hint_contended |
| 77 |
integer (omp_lock_hint_kind), & |
| 78 |
parameter :: omp_sync_hint_nonspeculative = 4 |
| 79 |
integer (omp_lock_hint_kind), & |
| 80 |
parameter :: omp_lock_hint_nonspeculative & |
| 81 |
= omp_sync_hint_nonspeculative |
| 82 |
integer (omp_lock_hint_kind), & |
| 83 |
parameter :: omp_sync_hint_speculative = 8 |
| 84 |
integer (omp_lock_hint_kind), & |
| 85 |
parameter :: omp_lock_hint_speculative & |
| 86 |
= omp_sync_hint_speculative |
| 87 |
integer (kind=omp_pause_resource_kind), & |
| 88 |
parameter :: omp_pause_soft = 1 |
| 89 |
integer (kind=omp_pause_resource_kind), & |
| 90 |
parameter :: omp_pause_hard = 2 |
| 91 |
integer (kind=omp_alloctrait_key_kind), & |
| 92 |
parameter :: omp_atk_sync_hint = 1 |
| 93 |
integer (kind=omp_alloctrait_key_kind), & |
| 94 |
parameter :: omp_atk_alignment = 2 |
| 95 |
integer (kind=omp_alloctrait_key_kind), & |
| 96 |
parameter :: omp_atk_access = 3 |
| 97 |
integer (kind=omp_alloctrait_key_kind), & |
| 98 |
parameter :: omp_atk_pool_size = 4 |
| 99 |
integer (kind=omp_alloctrait_key_kind), & |
| 100 |
parameter :: omp_atk_fallback = 5 |
| 101 |
integer (kind=omp_alloctrait_key_kind), & |
| 102 |
parameter :: omp_atk_fb_data = 6 |
| 103 |
integer (kind=omp_alloctrait_key_kind), & |
| 104 |
parameter :: omp_atk_pinned = 7 |
| 105 |
integer (kind=omp_alloctrait_key_kind), & |
| 106 |
parameter :: omp_atk_partition = 8 |
| 107 |
integer (kind=omp_alloctrait_val_kind), & |
| 108 |
parameter :: omp_atv_default = -1 |
| 109 |
integer (kind=omp_alloctrait_val_kind), & |
| 110 |
parameter :: omp_atv_false = 0 |
| 111 |
integer (kind=omp_alloctrait_val_kind), & |
| 112 |
parameter :: omp_atv_true = 1 |
| 113 |
integer (kind=omp_alloctrait_val_kind), & |
| 114 |
parameter :: omp_atv_contended = 3 |
| 115 |
integer (kind=omp_alloctrait_val_kind), & |
| 116 |
parameter :: omp_atv_uncontended = 4 |
| 117 |
integer (kind=omp_alloctrait_val_kind), & |
| 118 |
parameter :: omp_atv_serialized = 5 |
| 119 |
integer (kind=omp_alloctrait_val_kind), & |
| 120 |
parameter :: omp_atv_sequential = omp_atv_serialized |
| 121 |
integer (kind=omp_alloctrait_val_kind), & |
| 122 |
parameter :: omp_atv_private = 6 |
| 123 |
integer (kind=omp_alloctrait_val_kind), & |
| 124 |
parameter :: omp_atv_all = 7 |
| 125 |
integer (kind=omp_alloctrait_val_kind), & |
| 126 |
parameter :: omp_atv_thread = 8 |
| 127 |
integer (kind=omp_alloctrait_val_kind), & |
| 128 |
parameter :: omp_atv_pteam = 9 |
| 129 |
integer (kind=omp_alloctrait_val_kind), & |
| 130 |
parameter :: omp_atv_cgroup = 10 |
| 131 |
integer (kind=omp_alloctrait_val_kind), & |
| 132 |
parameter :: omp_atv_default_mem_fb = 11 |
| 133 |
integer (kind=omp_alloctrait_val_kind), & |
| 134 |
parameter :: omp_atv_null_fb = 12 |
| 135 |
integer (kind=omp_alloctrait_val_kind), & |
| 136 |
parameter :: omp_atv_abort_fb = 13 |
| 137 |
integer (kind=omp_alloctrait_val_kind), & |
| 138 |
parameter :: omp_atv_allocator_fb = 14 |
| 139 |
integer (kind=omp_alloctrait_val_kind), & |
| 140 |
parameter :: omp_atv_environment = 15 |
| 141 |
integer (kind=omp_alloctrait_val_kind), & |
| 142 |
parameter :: omp_atv_nearest = 16 |
| 143 |
integer (kind=omp_alloctrait_val_kind), & |
| 144 |
parameter :: omp_atv_blocked = 17 |
| 145 |
integer (kind=omp_alloctrait_val_kind), & |
| 146 |
parameter :: omp_atv_interleaved = 18 |
| 147 |
integer (kind=omp_allocator_handle_kind), & |
| 148 |
parameter :: omp_null_allocator = 0 |
| 149 |
integer (kind=omp_allocator_handle_kind), & |
| 150 |
parameter :: omp_default_mem_alloc = 1 |
| 151 |
integer (kind=omp_allocator_handle_kind), & |
| 152 |
parameter :: omp_large_cap_mem_alloc = 2 |
| 153 |
integer (kind=omp_allocator_handle_kind), & |
| 154 |
parameter :: omp_const_mem_alloc = 3 |
| 155 |
integer (kind=omp_allocator_handle_kind), & |
| 156 |
parameter :: omp_high_bw_mem_alloc = 4 |
| 157 |
integer (kind=omp_allocator_handle_kind), & |
| 158 |
parameter :: omp_low_lat_mem_alloc = 5 |
| 159 |
integer (kind=omp_allocator_handle_kind), & |
| 160 |
parameter :: omp_cgroup_mem_alloc = 6 |
| 161 |
integer (kind=omp_allocator_handle_kind), & |
| 162 |
parameter :: omp_pteam_mem_alloc = 7 |
| 163 |
integer (kind=omp_allocator_handle_kind), & |
| 164 |
parameter :: omp_thread_mem_alloc = 8 |
| 165 |
integer (kind=omp_allocator_handle_kind), & |
| 166 |
parameter :: ompx_gnu_pinned_mem_alloc = 200 |
| 167 |
integer (omp_memspace_handle_kind), & |
| 168 |
parameter :: omp_default_mem_space = 0 |
| 169 |
integer (omp_memspace_handle_kind), & |
| 170 |
parameter :: omp_large_cap_mem_space = 1 |
| 171 |
integer (omp_memspace_handle_kind), & |
| 172 |
parameter :: omp_const_mem_space = 2 |
| 173 |
integer (omp_memspace_handle_kind), & |
| 174 |
parameter :: omp_high_bw_mem_space = 3 |
| 175 |
integer (omp_memspace_handle_kind), & |
| 176 |
parameter :: omp_low_lat_mem_space = 4 |
| 177 |
integer, parameter :: omp_initial_device = -1 |
| 178 |
integer, parameter :: omp_invalid_device = -4 |
| 179 |
integer (omp_interop_kind), & |
| 180 |
parameter :: omp_interop_none = 0_omp_interop_kind |
| 181 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_cuda = 1 |
| 182 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_cuda_driver = 2 |
| 183 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_opencl = 3 |
| 184 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_sycl = 4 |
| 185 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_hip = 5 |
| 186 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_level_zero = 6 |
| 187 |
integer (omp_interop_fr_kind), parameter :: omp_ifr_hsa = 7 |
| 188 |
integer (omp_interop_fr_kind), & |
| 189 |
parameter :: omp_ifr_last = omp_ifr_hsa |
| 190 |
integer (omp_interop_property_kind), parameter :: omp_ipr_fr_id = -1 |
| 191 |
integer (omp_interop_property_kind), parameter :: omp_ipr_fr_name = -2 |
| 192 |
integer (omp_interop_property_kind), parameter :: omp_ipr_vendor = -3 |
| 193 |
integer (omp_interop_property_kind), & |
| 194 |
parameter :: omp_ipr_vendor_name = -4 |
| 195 |
integer (omp_interop_property_kind), & |
| 196 |
parameter :: omp_ipr_device_num = -5 |
| 197 |
integer (omp_interop_property_kind), parameter :: omp_ipr_platform = -6 |
| 198 |
integer (omp_interop_property_kind), parameter :: omp_ipr_device = -7 |
| 199 |
integer (omp_interop_property_kind), & |
| 200 |
parameter :: omp_ipr_device_context = -8 |
| 201 |
integer (omp_interop_property_kind), & |
| 202 |
parameter :: omp_ipr_targetsync = -9 |
| 203 |
integer (omp_interop_property_kind), & |
| 204 |
parameter :: omp_ipr_first = omp_ipr_targetsync |
| 205 |
integer (omp_interop_rc_kind), parameter :: omp_irc_no_value = 1 |
| 206 |
integer (omp_interop_rc_kind), parameter :: omp_irc_success = 0 |
| 207 |
integer (omp_interop_rc_kind), parameter :: omp_irc_empty = -1 |
| 208 |
integer (omp_interop_rc_kind), parameter :: omp_irc_out_of_range = -2 |
| 209 |
integer (omp_interop_rc_kind), parameter :: omp_irc_type_int = -3 |
| 210 |
integer (omp_interop_rc_kind), parameter :: omp_irc_type_ptr = -4 |
| 211 |
integer (omp_interop_rc_kind), parameter :: omp_irc_type_str = -5 |
| 212 |
integer (omp_interop_rc_kind), parameter :: omp_irc_other = -6 |
| 213 |
|
| 214 |
type omp_alloctrait |
| 215 |
integer (kind=omp_alloctrait_key_kind) key |
| 216 |
integer (kind=omp_alloctrait_val_kind) value |
| 217 |
end type omp_alloctrait |
| 218 |
end module |
| 219 |
|
| 220 |
module omp_lib |
| 221 |
use omp_lib_kinds |
| 222 |
implicit none |
| 223 |
integer, parameter :: openmp_version = 201511 |
| 224 |
|
| 225 |
interface |
| 226 |
subroutine omp_init_lock (svar) |
| 227 |
use omp_lib_kinds |
| 228 |
integer (omp_lock_kind), intent (out) :: svar |
| 229 |
end subroutine omp_init_lock |
| 230 |
end interface |
| 231 |
|
| 232 |
interface |
| 233 |
subroutine omp_init_lock_with_hint (svar, hint) |
| 234 |
use omp_lib_kinds |
| 235 |
integer (omp_lock_kind), intent (out) :: svar |
| 236 |
integer (omp_lock_hint_kind), intent (in) :: hint |
| 237 |
end subroutine omp_init_lock_with_hint |
| 238 |
end interface |
| 239 |
|
| 240 |
interface |
| 241 |
subroutine omp_init_nest_lock (nvar) |
| 242 |
use omp_lib_kinds |
| 243 |
integer (omp_nest_lock_kind), intent (out) :: nvar |
| 244 |
end subroutine omp_init_nest_lock |
| 245 |
end interface |
| 246 |
|
| 247 |
interface |
| 248 |
subroutine omp_init_nest_lock_with_hint (nvar, hint) |
| 249 |
use omp_lib_kinds |
| 250 |
integer (omp_nest_lock_kind), intent (out) :: nvar |
| 251 |
integer (omp_lock_hint_kind), intent (in) :: hint |
| 252 |
end subroutine omp_init_nest_lock_with_hint |
| 253 |
end interface |
| 254 |
|
| 255 |
interface |
| 256 |
subroutine omp_destroy_lock (svar) |
| 257 |
use omp_lib_kinds |
| 258 |
integer (omp_lock_kind), intent (inout) :: svar |
| 259 |
end subroutine omp_destroy_lock |
| 260 |
end interface |
| 261 |
|
| 262 |
interface |
| 263 |
subroutine omp_destroy_nest_lock (nvar) |
| 264 |
use omp_lib_kinds |
| 265 |
integer (omp_nest_lock_kind), intent (inout) :: nvar |
| 266 |
end subroutine omp_destroy_nest_lock |
| 267 |
end interface |
| 268 |
|
| 269 |
interface |
| 270 |
subroutine omp_set_lock (svar) |
| 271 |
use omp_lib_kinds |
| 272 |
integer (omp_lock_kind), intent (inout) :: svar |
| 273 |
end subroutine omp_set_lock |
| 274 |
end interface |
| 275 |
|
| 276 |
interface |
| 277 |
subroutine omp_set_nest_lock (nvar) |
| 278 |
use omp_lib_kinds |
| 279 |
integer (omp_nest_lock_kind), intent (inout) :: nvar |
| 280 |
end subroutine omp_set_nest_lock |
| 281 |
end interface |
| 282 |
|
| 283 |
interface |
| 284 |
subroutine omp_unset_lock (svar) |
| 285 |
use omp_lib_kinds |
| 286 |
integer (omp_lock_kind), intent (inout) :: svar |
| 287 |
end subroutine omp_unset_lock |
| 288 |
end interface |
| 289 |
|
| 290 |
interface |
| 291 |
subroutine omp_unset_nest_lock (nvar) |
| 292 |
use omp_lib_kinds |
| 293 |
integer (omp_nest_lock_kind), intent (inout) :: nvar |
| 294 |
end subroutine omp_unset_nest_lock |
| 295 |
end interface |
| 296 |
|
| 297 |
interface omp_set_dynamic |
| 298 |
subroutine omp_set_dynamic (dynamic_threads) |
| 299 |
logical (4), intent (in) :: dynamic_threads |
| 300 |
end subroutine omp_set_dynamic |
| 301 |
subroutine omp_set_dynamic_8 (dynamic_threads) |
| 302 |
logical (8), intent (in) :: dynamic_threads |
| 303 |
end subroutine omp_set_dynamic_8 |
| 304 |
end interface |
| 305 |
|
| 306 |
interface omp_set_nested |
| 307 |
subroutine omp_set_nested (nested) |
| 308 |
logical (4), intent (in) :: nested |
| 309 |
end subroutine omp_set_nested |
| 310 |
subroutine omp_set_nested_8 (nested) |
| 311 |
logical (8), intent (in) :: nested |
| 312 |
end subroutine omp_set_nested_8 |
| 313 |
end interface |
| 314 |
|
| 315 |
interface omp_set_num_threads |
| 316 |
subroutine omp_set_num_threads (num_threads) |
| 317 |
integer (4), intent (in) :: num_threads |
| 318 |
end subroutine omp_set_num_threads |
| 319 |
subroutine omp_set_num_threads_8 (num_threads) |
| 320 |
integer (8), intent (in) :: num_threads |
| 321 |
end subroutine omp_set_num_threads_8 |
| 322 |
end interface |
| 323 |
|
| 324 |
interface |
| 325 |
function omp_get_dynamic () |
| 326 |
logical (4) :: omp_get_dynamic |
| 327 |
end function omp_get_dynamic |
| 328 |
end interface |
| 329 |
|
| 330 |
interface |
| 331 |
function omp_get_nested () |
| 332 |
logical (4) :: omp_get_nested |
| 333 |
end function omp_get_nested |
| 334 |
end interface |
| 335 |
|
| 336 |
interface |
| 337 |
function omp_in_parallel () |
| 338 |
logical (4) :: omp_in_parallel |
| 339 |
end function omp_in_parallel |
| 340 |
end interface |
| 341 |
|
| 342 |
interface |
| 343 |
function omp_test_lock (svar) |
| 344 |
use omp_lib_kinds |
| 345 |
logical (4) :: omp_test_lock |
| 346 |
integer (omp_lock_kind), intent (inout) :: svar |
| 347 |
end function omp_test_lock |
| 348 |
end interface |
| 349 |
|
| 350 |
interface |
| 351 |
function omp_get_max_threads () |
| 352 |
integer (4) :: omp_get_max_threads |
| 353 |
end function omp_get_max_threads |
| 354 |
end interface |
| 355 |
|
| 356 |
interface |
| 357 |
function omp_get_num_procs () |
| 358 |
integer (4) :: omp_get_num_procs |
| 359 |
end function omp_get_num_procs |
| 360 |
end interface |
| 361 |
|
| 362 |
interface |
| 363 |
function omp_get_num_threads () |
| 364 |
integer (4) :: omp_get_num_threads |
| 365 |
end function omp_get_num_threads |
| 366 |
end interface |
| 367 |
|
| 368 |
interface |
| 369 |
function omp_get_thread_num () |
| 370 |
integer (4) :: omp_get_thread_num |
| 371 |
end function omp_get_thread_num |
| 372 |
end interface |
| 373 |
|
| 374 |
interface |
| 375 |
function omp_test_nest_lock (nvar) |
| 376 |
use omp_lib_kinds |
| 377 |
integer (4) :: omp_test_nest_lock |
| 378 |
integer (omp_nest_lock_kind), intent (inout) :: nvar |
| 379 |
end function omp_test_nest_lock |
| 380 |
end interface |
| 381 |
|
| 382 |
interface |
| 383 |
function omp_get_wtick () |
| 384 |
double precision :: omp_get_wtick |
| 385 |
end function omp_get_wtick |
| 386 |
end interface |
| 387 |
|
| 388 |
interface |
| 389 |
function omp_get_wtime () |
| 390 |
double precision :: omp_get_wtime |
| 391 |
end function omp_get_wtime |
| 392 |
end interface |
| 393 |
|
| 394 |
interface omp_set_schedule |
| 395 |
subroutine omp_set_schedule (kind, chunk_size) |
| 396 |
use omp_lib_kinds |
| 397 |
integer (omp_sched_kind), intent (in) :: kind |
| 398 |
integer (4), intent (in) :: chunk_size |
| 399 |
end subroutine omp_set_schedule |
| 400 |
subroutine omp_set_schedule_8 (kind, chunk_size) |
| 401 |
use omp_lib_kinds |
| 402 |
integer (omp_sched_kind), intent (in) :: kind |
| 403 |
integer (8), intent (in) :: chunk_size |
| 404 |
end subroutine omp_set_schedule_8 |
| 405 |
end interface |
| 406 |
|
| 407 |
interface omp_get_schedule |
| 408 |
subroutine omp_get_schedule (kind, chunk_size) |
| 409 |
use omp_lib_kinds |
| 410 |
integer (omp_sched_kind), intent (out) :: kind |
| 411 |
integer (4), intent (out) :: chunk_size |
| 412 |
end subroutine omp_get_schedule |
| 413 |
subroutine omp_get_schedule_8 (kind, chunk_size) |
| 414 |
use omp_lib_kinds |
| 415 |
integer (omp_sched_kind), intent (out) :: kind |
| 416 |
integer (8), intent (out) :: chunk_size |
| 417 |
end subroutine omp_get_schedule_8 |
| 418 |
end interface |
| 419 |
|
| 420 |
interface |
| 421 |
function omp_get_thread_limit () |
| 422 |
integer (4) :: omp_get_thread_limit |
| 423 |
end function omp_get_thread_limit |
| 424 |
end interface |
| 425 |
|
| 426 |
interface omp_set_max_active_levels |
| 427 |
subroutine omp_set_max_active_levels (max_levels) |
| 428 |
integer (4), intent (in) :: max_levels |
| 429 |
end subroutine omp_set_max_active_levels |
| 430 |
subroutine omp_set_max_active_levels_8 (max_levels) |
| 431 |
integer (8), intent (in) :: max_levels |
| 432 |
end subroutine omp_set_max_active_levels_8 |
| 433 |
end interface |
| 434 |
|
| 435 |
interface |
| 436 |
function omp_get_max_active_levels () |
| 437 |
integer (4) :: omp_get_max_active_levels |
| 438 |
end function omp_get_max_active_levels |
| 439 |
end interface |
| 440 |
|
| 441 |
interface |
| 442 |
function omp_get_supported_active_levels () |
| 443 |
integer (4) :: omp_get_supported_active_levels |
| 444 |
end function omp_get_supported_active_levels |
| 445 |
end interface |
| 446 |
|
| 447 |
interface |
| 448 |
function omp_get_level () |
| 449 |
integer (4) :: omp_get_level |
| 450 |
end function omp_get_level |
| 451 |
end interface |
| 452 |
|
| 453 |
interface omp_get_ancestor_thread_num |
| 454 |
function omp_get_ancestor_thread_num (level) |
| 455 |
integer (4), intent (in) :: level |
| 456 |
integer (4) :: omp_get_ancestor_thread_num |
| 457 |
end function omp_get_ancestor_thread_num |
| 458 |
function omp_get_ancestor_thread_num_8 (level) |
| 459 |
integer (8), intent (in) :: level |
| 460 |
integer (4) :: omp_get_ancestor_thread_num_8 |
| 461 |
end function omp_get_ancestor_thread_num_8 |
| 462 |
end interface |
| 463 |
|
| 464 |
interface omp_get_team_size |
| 465 |
function omp_get_team_size (level) |
| 466 |
integer (4), intent (in) :: level |
| 467 |
integer (4) :: omp_get_team_size |
| 468 |
end function omp_get_team_size |
| 469 |
function omp_get_team_size_8 (level) |
| 470 |
integer (8), intent (in) :: level |
| 471 |
integer (4) :: omp_get_team_size_8 |
| 472 |
end function omp_get_team_size_8 |
| 473 |
end interface |
| 474 |
|
| 475 |
interface |
| 476 |
function omp_get_active_level () |
| 477 |
integer (4) :: omp_get_active_level |
| 478 |
end function omp_get_active_level |
| 479 |
end interface |
| 480 |
|
| 481 |
interface |
| 482 |
function omp_in_final () |
| 483 |
logical (4) :: omp_in_final |
| 484 |
end function omp_in_final |
| 485 |
end interface |
| 486 |
|
| 487 |
interface |
| 488 |
function omp_in_explicit_task () |
| 489 |
logical (4) :: omp_in_explicit_task |
| 490 |
end function omp_in_explicit_task |
| 491 |
end interface |
| 492 |
|
| 493 |
interface |
| 494 |
function omp_get_cancellation () |
| 495 |
logical (4) :: omp_get_cancellation |
| 496 |
end function omp_get_cancellation |
| 497 |
end interface |
| 498 |
|
| 499 |
interface |
| 500 |
function omp_get_proc_bind () |
| 501 |
use omp_lib_kinds |
| 502 |
integer (omp_proc_bind_kind) :: omp_get_proc_bind |
| 503 |
end function omp_get_proc_bind |
| 504 |
end interface |
| 505 |
|
| 506 |
interface |
| 507 |
function omp_get_num_places () |
| 508 |
integer (4) :: omp_get_num_places |
| 509 |
end function omp_get_num_places |
| 510 |
end interface |
| 511 |
|
| 512 |
interface omp_get_place_num_procs |
| 513 |
function omp_get_place_num_procs (place_num) |
| 514 |
integer (4), intent(in) :: place_num |
| 515 |
integer (4) :: omp_get_place_num_procs |
| 516 |
end function omp_get_place_num_procs |
| 517 |
|
| 518 |
function omp_get_place_num_procs_8 (place_num) |
| 519 |
integer (8), intent(in) :: place_num |
| 520 |
integer (4) :: omp_get_place_num_procs_8 |
| 521 |
end function omp_get_place_num_procs_8 |
| 522 |
end interface |
| 523 |
|
| 524 |
interface omp_get_place_proc_ids |
| 525 |
subroutine omp_get_place_proc_ids (place_num, ids) |
| 526 |
integer (4), intent(in) :: place_num |
| 527 |
integer (4), intent(out) :: ids(*) |
| 528 |
end subroutine omp_get_place_proc_ids |
| 529 |
|
| 530 |
subroutine omp_get_place_proc_ids_8 (place_num, ids) |
| 531 |
integer (8), intent(in) :: place_num |
| 532 |
integer (8), intent(out) :: ids(*) |
| 533 |
end subroutine omp_get_place_proc_ids_8 |
| 534 |
end interface |
| 535 |
|
| 536 |
interface |
| 537 |
function omp_get_place_num () |
| 538 |
integer (4) :: omp_get_place_num |
| 539 |
end function omp_get_place_num |
| 540 |
end interface |
| 541 |
|
| 542 |
interface |
| 543 |
function omp_get_partition_num_places () |
| 544 |
integer (4) :: omp_get_partition_num_places |
| 545 |
end function omp_get_partition_num_places |
| 546 |
end interface |
| 547 |
|
| 548 |
interface omp_get_partition_place_nums |
| 549 |
subroutine omp_get_partition_place_nums (place_nums) |
| 550 |
integer (4), intent(out) :: place_nums(*) |
| 551 |
end subroutine omp_get_partition_place_nums |
| 552 |
|
| 553 |
subroutine omp_get_partition_place_nums_8 (place_nums) |
| 554 |
integer (8), intent(out) :: place_nums(*) |
| 555 |
end subroutine omp_get_partition_place_nums_8 |
| 556 |
end interface |
| 557 |
|
| 558 |
interface omp_set_default_device |
| 559 |
subroutine omp_set_default_device (device_num) |
| 560 |
integer (4), intent (in) :: device_num |
| 561 |
end subroutine omp_set_default_device |
| 562 |
subroutine omp_set_default_device_8 (device_num) |
| 563 |
integer (8), intent (in) :: device_num |
| 564 |
end subroutine omp_set_default_device_8 |
| 565 |
end interface |
| 566 |
|
| 567 |
interface |
| 568 |
function omp_get_default_device () |
| 569 |
integer (4) :: omp_get_default_device |
| 570 |
end function omp_get_default_device |
| 571 |
end interface |
| 572 |
|
| 573 |
interface |
| 574 |
function omp_get_num_devices () |
| 575 |
integer (4) :: omp_get_num_devices |
| 576 |
end function omp_get_num_devices |
| 577 |
end interface |
| 578 |
|
| 579 |
interface |
| 580 |
function omp_get_num_teams () |
| 581 |
integer (4) :: omp_get_num_teams |
| 582 |
end function omp_get_num_teams |
| 583 |
end interface |
| 584 |
|
| 585 |
interface |
| 586 |
function omp_get_team_num () |
| 587 |
integer (4) :: omp_get_team_num |
| 588 |
end function omp_get_team_num |
| 589 |
end interface |
| 590 |
|
| 591 |
interface |
| 592 |
function omp_is_initial_device () |
| 593 |
logical (4) :: omp_is_initial_device |
| 594 |
end function omp_is_initial_device |
| 595 |
end interface |
| 596 |
|
| 597 |
interface |
| 598 |
function omp_get_initial_device () |
| 599 |
integer (4) :: omp_get_initial_device |
| 600 |
end function omp_get_initial_device |
| 601 |
end interface |
| 602 |
|
| 603 |
interface |
| 604 |
function omp_get_device_num () |
| 605 |
integer (4) :: omp_get_device_num |
| 606 |
end function omp_get_device_num |
| 607 |
end interface |
| 608 |
|
| 609 |
interface |
| 610 |
function omp_get_max_task_priority () |
| 611 |
integer (4) :: omp_get_max_task_priority |
| 612 |
end function omp_get_max_task_priority |
| 613 |
end interface |
| 614 |
|
| 615 |
interface omp_set_num_teams |
| 616 |
subroutine omp_set_num_teams (num_teams) |
| 617 |
integer (4), intent (in) :: num_teams |
| 618 |
end subroutine omp_set_num_teams |
| 619 |
subroutine omp_set_num_teams_8 (num_teams) |
| 620 |
integer (8), intent (in) :: num_teams |
| 621 |
end subroutine omp_set_num_teams_8 |
| 622 |
end interface |
| 623 |
|
| 624 |
interface |
| 625 |
function omp_get_max_teams () |
| 626 |
integer (4) :: omp_get_max_teams |
| 627 |
end function omp_get_max_teams |
| 628 |
end interface |
| 629 |
|
| 630 |
interface omp_set_teams_thread_limit |
| 631 |
subroutine omp_set_teams_thread_limit (thread_limit) |
| 632 |
integer (4), intent (in) :: thread_limit |
| 633 |
end subroutine omp_set_teams_thread_limit |
| 634 |
subroutine omp_set_teams_thread_limit_8 (thread_limit) |
| 635 |
integer (8), intent (in) :: thread_limit |
| 636 |
end subroutine omp_set_teams_thread_limit_8 |
| 637 |
end interface |
| 638 |
|
| 639 |
interface |
| 640 |
function omp_get_teams_thread_limit () |
| 641 |
integer (4) :: omp_get_teams_thread_limit |
| 642 |
end function omp_get_teams_thread_limit |
| 643 |
end interface |
| 644 |
|
| 645 |
interface |
| 646 |
subroutine omp_fulfill_event (event) |
| 647 |
use omp_lib_kinds |
| 648 |
integer (kind=omp_event_handle_kind), & |
| 649 |
value, intent(in) :: event |
| 650 |
end subroutine omp_fulfill_event |
| 651 |
end interface |
| 652 |
|
| 653 |
interface |
| 654 |
subroutine omp_set_affinity_format (format) |
| 655 |
character(len=*), intent(in) :: format |
| 656 |
end subroutine omp_set_affinity_format |
| 657 |
end interface |
| 658 |
|
| 659 |
interface |
| 660 |
function omp_get_affinity_format (buffer) |
| 661 |
integer (4) :: omp_get_affinity_format |
| 662 |
character(len=*), intent(out) :: buffer |
| 663 |
end function omp_get_affinity_format |
| 664 |
end interface |
| 665 |
|
| 666 |
interface |
| 667 |
subroutine omp_display_affinity (format) |
| 668 |
character(len=*), intent(in) :: format |
| 669 |
end subroutine omp_display_affinity |
| 670 |
end interface |
| 671 |
|
| 672 |
interface |
| 673 |
function omp_capture_affinity (buffer, format) |
| 674 |
integer (4) :: omp_capture_affinity |
| 675 |
character(len=*), intent(out) :: buffer |
| 676 |
character(len=*), intent(in) :: format |
| 677 |
end function omp_capture_affinity |
| 678 |
end interface |
| 679 |
|
| 680 |
interface |
| 681 |
function omp_pause_resource (kind, device_num) |
| 682 |
use omp_lib_kinds |
| 683 |
integer (4) :: omp_pause_resource |
| 684 |
integer (kind=omp_pause_resource_kind), & |
| 685 |
intent(in) :: kind |
| 686 |
integer (4) :: device_num |
| 687 |
end function |
| 688 |
end interface |
| 689 |
|
| 690 |
interface |
| 691 |
function omp_pause_resource_all (kind) |
| 692 |
use omp_lib_kinds |
| 693 |
integer (4) :: omp_pause_resource_all |
| 694 |
integer (kind=omp_pause_resource_kind), & |
| 695 |
intent(in) :: kind |
| 696 |
end function |
| 697 |
end interface |
| 698 |
|
| 699 |
interface omp_init_allocator |
| 700 |
function omp_init_allocator (memspace, ntraits, traits) |
| 701 |
use omp_lib_kinds |
| 702 |
integer (kind=omp_allocator_handle_kind) omp_init_allocator |
| 703 |
integer (kind=omp_memspace_handle_kind), & |
| 704 |
intent(in) :: memspace |
| 705 |
integer (4), intent(in) :: ntraits |
| 706 |
type (omp_alloctrait), intent(in) :: traits(*) |
| 707 |
end function |
| 708 |
function omp_init_allocator_8 (memspace, ntraits, traits) |
| 709 |
use omp_lib_kinds |
| 710 |
integer (kind=omp_allocator_handle_kind) omp_init_allocator_8 |
| 711 |
integer (kind=omp_memspace_handle_kind), & |
| 712 |
intent(in) :: memspace |
| 713 |
integer (8), intent(in) :: ntraits |
| 714 |
type (omp_alloctrait), intent(in) :: traits(*) |
| 715 |
end function |
| 716 |
end interface |
| 717 |
|
| 718 |
interface |
| 719 |
subroutine omp_destroy_allocator (allocator) |
| 720 |
use omp_lib_kinds |
| 721 |
integer (kind=omp_allocator_handle_kind), & |
| 722 |
intent(in) :: allocator |
| 723 |
end subroutine |
| 724 |
end interface |
| 725 |
|
| 726 |
interface |
| 727 |
subroutine omp_set_default_allocator (allocator) |
| 728 |
use omp_lib_kinds |
| 729 |
integer (kind=omp_allocator_handle_kind), & |
| 730 |
intent(in) :: allocator |
| 731 |
end subroutine |
| 732 |
end interface |
| 733 |
|
| 734 |
interface |
| 735 |
function omp_get_default_allocator () |
| 736 |
use omp_lib_kinds |
| 737 |
integer (kind=omp_allocator_handle_kind) & |
| 738 |
omp_get_default_allocator |
| 739 |
end function |
| 740 |
end interface |
| 741 |
|
| 742 |
interface omp_display_env |
| 743 |
subroutine omp_display_env (verbose) |
| 744 |
logical (4),intent (in) :: verbose |
| 745 |
end subroutine omp_display_env |
| 746 |
subroutine omp_display_env_8 (verbose) |
| 747 |
logical (8),intent (in) :: verbose |
| 748 |
end subroutine omp_display_env_8 |
| 749 |
end interface |
| 750 |
|
| 751 |
interface |
| 752 |
function omp_alloc (size, allocator) bind(c) |
| 753 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 754 |
import :: omp_allocator_handle_kind |
| 755 |
type(c_ptr) :: omp_alloc |
| 756 |
integer(c_size_t), value :: size |
| 757 |
integer(omp_allocator_handle_kind), value :: allocator |
| 758 |
end function omp_alloc |
| 759 |
end interface |
| 760 |
|
| 761 |
interface |
| 762 |
function omp_aligned_alloc (alignment, size, allocator) bind(c) |
| 763 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 764 |
import :: omp_allocator_handle_kind |
| 765 |
type(c_ptr) :: omp_aligned_alloc |
| 766 |
integer(c_size_t), value :: alignment, size |
| 767 |
integer(omp_allocator_handle_kind), value :: allocator |
| 768 |
end function omp_aligned_alloc |
| 769 |
end interface |
| 770 |
|
| 771 |
interface |
| 772 |
subroutine omp_free(ptr, allocator) bind(c) |
| 773 |
use, intrinsic :: iso_c_binding, only : c_ptr |
| 774 |
import :: omp_allocator_handle_kind |
| 775 |
type(c_ptr), value :: ptr |
| 776 |
integer(omp_allocator_handle_kind), value :: allocator |
| 777 |
end subroutine omp_free |
| 778 |
end interface |
| 779 |
|
| 780 |
interface |
| 781 |
function omp_calloc (nmemb, size, allocator) bind(c) |
| 782 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 783 |
import :: omp_allocator_handle_kind |
| 784 |
type(c_ptr) :: omp_calloc |
| 785 |
integer(c_size_t), value :: nmemb, size |
| 786 |
integer(omp_allocator_handle_kind), value :: allocator |
| 787 |
end function omp_calloc |
| 788 |
end interface |
| 789 |
|
| 790 |
interface |
| 791 |
function omp_aligned_calloc (alignment, nmemb, size, allocator) bind(c) |
| 792 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 793 |
import :: omp_allocator_handle_kind |
| 794 |
type(c_ptr) :: omp_aligned_calloc |
| 795 |
integer(c_size_t), value :: alignment, nmemb, size |
| 796 |
integer(omp_allocator_handle_kind), value :: allocator |
| 797 |
end function omp_aligned_calloc |
| 798 |
end interface |
| 799 |
|
| 800 |
interface |
| 801 |
function omp_realloc (ptr, size, allocator, free_allocator) bind(c) |
| 802 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t |
| 803 |
import :: omp_allocator_handle_kind |
| 804 |
type(c_ptr) :: omp_realloc |
| 805 |
type(c_ptr), value :: ptr |
| 806 |
integer(c_size_t), value :: size |
| 807 |
integer(omp_allocator_handle_kind), value :: allocator, free_allocator |
| 808 |
end function omp_realloc |
| 809 |
end interface |
| 810 |
|
| 811 |
interface |
| 812 |
function omp_target_alloc (size, device_num) bind(c) |
| 813 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t, c_int |
| 814 |
type(c_ptr) :: omp_target_alloc |
| 815 |
integer(c_size_t), value :: size |
| 816 |
integer(c_int), value :: device_num |
| 817 |
end function omp_target_alloc |
| 818 |
end interface |
| 819 |
|
| 820 |
interface |
| 821 |
subroutine omp_target_free (device_ptr, device_num) bind(c) |
| 822 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int |
| 823 |
type(c_ptr), value :: device_ptr |
| 824 |
integer(c_int), value :: device_num |
| 825 |
end subroutine omp_target_free |
| 826 |
end interface |
| 827 |
|
| 828 |
interface |
| 829 |
function omp_target_is_present (ptr, device_num) bind(c) |
| 830 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int |
| 831 |
integer(c_int) :: omp_target_is_present |
| 832 |
type(c_ptr), value :: ptr |
| 833 |
integer(c_int), value :: device_num |
| 834 |
end function omp_target_is_present |
| 835 |
end interface |
| 836 |
|
| 837 |
interface |
| 838 |
function omp_target_memcpy (dst, src, length, dst_offset, & |
| 839 |
src_offset, dst_device_num, & |
| 840 |
src_device_num) bind(c) |
| 841 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 842 |
integer(c_int) :: omp_target_memcpy |
| 843 |
type(c_ptr), value :: dst, src |
| 844 |
integer(c_size_t), value :: length, dst_offset, src_offset |
| 845 |
integer(c_int), value :: dst_device_num, src_device_num |
| 846 |
end function omp_target_memcpy |
| 847 |
end interface |
| 848 |
|
| 849 |
interface |
| 850 |
function omp_target_memcpy_async (dst, src, length, dst_offset, & |
| 851 |
src_offset, dst_device_num, & |
| 852 |
src_device_num, depobj_count, & |
| 853 |
depobj_list) bind(c) |
| 854 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 855 |
import :: omp_depend_kind |
| 856 |
integer(c_int) :: omp_target_memcpy_async |
| 857 |
type(c_ptr), value :: dst, src |
| 858 |
integer(c_size_t), value :: length, dst_offset, src_offset |
| 859 |
integer(c_int), value :: dst_device_num, src_device_num, & |
| 860 |
depobj_count |
| 861 |
integer(omp_depend_kind), optional :: depobj_list(*) |
| 862 |
end function omp_target_memcpy_async |
| 863 |
end interface |
| 864 |
|
| 865 |
interface |
| 866 |
function omp_target_memcpy_rect (dst,src,element_size, num_dims, & |
| 867 |
volume, dst_offsets, src_offsets, & |
| 868 |
dst_dimensions, src_dimensions, & |
| 869 |
dst_device_num, src_device_num) & |
| 870 |
bind(c) |
| 871 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 872 |
integer(c_int) :: omp_target_memcpy_rect |
| 873 |
type(c_ptr), value :: dst, src |
| 874 |
integer(c_size_t), value :: element_size |
| 875 |
integer(c_int), value :: num_dims, dst_device_num, src_device_num |
| 876 |
integer(c_size_t), intent(in) :: volume(*), dst_offsets(*), & |
| 877 |
src_offsets(*), dst_dimensions(*), & |
| 878 |
src_dimensions(*) |
| 879 |
end function omp_target_memcpy_rect |
| 880 |
end interface |
| 881 |
|
| 882 |
interface |
| 883 |
function omp_target_memcpy_rect_async (dst,src,element_size, & |
| 884 |
num_dims, volume, & |
| 885 |
dst_offsets, src_offsets, & |
| 886 |
dst_dimensions, & |
| 887 |
src_dimensions, & |
| 888 |
dst_device_num, & |
| 889 |
src_device_num, & |
| 890 |
depobj_count, & |
| 891 |
depobj_list) bind(c) |
| 892 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t |
| 893 |
import :: omp_depend_kind |
| 894 |
integer(c_int) :: omp_target_memcpy_rect_async |
| 895 |
type(c_ptr), value :: dst, src |
| 896 |
integer(c_size_t), value :: element_size |
| 897 |
integer(c_int), value :: num_dims, dst_device_num, src_device_num, & |
| 898 |
depobj_count |
| 899 |
integer(c_size_t), intent(in) :: volume(*), dst_offsets(*), & |
| 900 |
src_offsets(*), dst_dimensions(*), & |
| 901 |
src_dimensions(*) |
| 902 |
integer(omp_depend_kind), optional :: depobj_list(*) |
| 903 |
end function omp_target_memcpy_rect_async |
| 904 |
end interface |
| 905 |
|
| 906 |
interface |
| 907 |
function omp_target_associate_ptr (host_ptr, device_ptr, size, & |
| 908 |
device_offset, device_num) bind(c) |
| 909 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t, c_int |
| 910 |
integer(c_int) :: omp_target_associate_ptr |
| 911 |
type(c_ptr), value :: host_ptr, device_ptr |
| 912 |
integer(c_size_t), value :: size, device_offset |
| 913 |
integer(c_int), value :: device_num |
| 914 |
end function omp_target_associate_ptr |
| 915 |
end interface |
| 916 |
|
| 917 |
interface |
| 918 |
function omp_target_disassociate_ptr (ptr, device_num) bind(c) |
| 919 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int |
| 920 |
integer(c_int) :: omp_target_disassociate_ptr |
| 921 |
type(c_ptr), value :: ptr |
| 922 |
integer(c_int), value :: device_num |
| 923 |
end function omp_target_disassociate_ptr |
| 924 |
end interface |
| 925 |
|
| 926 |
interface |
| 927 |
function omp_get_mapped_ptr (ptr, device_num) bind(c) |
| 928 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_int |
| 929 |
type(c_ptr) :: omp_get_mapped_ptr |
| 930 |
type(c_ptr), value :: ptr |
| 931 |
integer(c_int), value :: device_num |
| 932 |
end function omp_get_mapped_ptr |
| 933 |
end interface |
| 934 |
|
| 935 |
interface |
| 936 |
function omp_target_is_accessible (ptr, size, device_num) bind(c) |
| 937 |
use, intrinsic :: iso_c_binding, only : c_ptr, c_size_t, c_int |
| 938 |
integer(c_int) :: omp_target_is_accessible |
| 939 |
type(c_ptr), value :: ptr |
| 940 |
integer(c_size_t), value :: size |
| 941 |
integer(c_int), value :: device_num |
| 942 |
end function omp_target_is_accessible |
| 943 |
end interface |
| 944 |
|
| 945 |
! Interop functions: Note that the interface is not identical to the |
| 946 |
! OpenMP specification (c_int + VALUE + BIND(C) added) but usage |
| 947 |
! compatible; the following declarations permit to directly call the C |
| 948 |
! library function, except for the four string-returning functions. |
| 949 |
interface |
| 950 |
integer (c_int) function omp_get_num_interop_properties (interop) & |
| 951 |
bind(C) |
| 952 |
use, intrinsic :: iso_c_binding, only: c_int |
| 953 |
use omp_lib_kinds |
| 954 |
integer (omp_interop_kind), intent(in), value :: interop |
| 955 |
end function omp_get_num_interop_properties |
| 956 |
|
| 957 |
integer (c_intptr_t) function omp_get_interop_int (interop, & |
| 958 |
property_id, ret_code) bind(C) |
| 959 |
use, intrinsic :: iso_c_binding, only : c_intptr_t |
| 960 |
use omp_lib_kinds |
| 961 |
integer (omp_interop_kind), intent(in), value :: interop |
| 962 |
integer (omp_interop_property_kind), value :: property_id |
| 963 |
integer (omp_interop_rc_kind), optional, intent(out) :: ret_code |
| 964 |
end function omp_get_interop_int |
| 965 |
|
| 966 |
type (c_ptr) function omp_get_interop_ptr (interop, property_id, & |
| 967 |
ret_code) bind(C) |
| 968 |
use, intrinsic :: iso_c_binding, only : c_ptr |
| 969 |
use omp_lib_kinds |
| 970 |
integer (omp_interop_kind), intent(in), value :: interop |
| 971 |
integer (omp_interop_property_kind), value :: property_id |
| 972 |
integer (omp_interop_rc_kind), optional, intent(out) :: ret_code |
| 973 |
end function omp_get_interop_ptr |
| 974 |
|
| 975 |
character(:) function omp_get_interop_str (interop, property_id, & |
| 976 |
ret_code) |
| 977 |
use omp_lib_kinds |
| 978 |
pointer :: omp_get_interop_str |
| 979 |
integer (omp_interop_kind), intent(in), value :: interop |
| 980 |
integer (omp_interop_property_kind), value :: property_id |
| 981 |
integer (omp_interop_rc_kind), optional, intent(out) :: ret_code |
| 982 |
end function omp_get_interop_str |
| 983 |
|
| 984 |
character(:) function omp_get_interop_name (interop, property_id) |
| 985 |
use omp_lib_kinds |
| 986 |
pointer :: omp_get_interop_name |
| 987 |
integer (omp_interop_kind), intent(in), value :: interop |
| 988 |
integer (omp_interop_property_kind), value :: property_id |
| 989 |
end function omp_get_interop_name |
| 990 |
|
| 991 |
character(:) function omp_get_interop_type_desc (interop, property_id) |
| 992 |
use omp_lib_kinds |
| 993 |
pointer :: omp_get_interop_type_desc |
| 994 |
integer (omp_interop_kind), intent(in), value :: interop |
| 995 |
integer (omp_interop_property_kind), value :: property_id |
| 996 |
end function omp_get_interop_type_desc |
| 997 |
|
| 998 |
character(:) function omp_get_interop_rc_desc (interop, ret_code) |
| 999 |
use omp_lib_kinds |
| 1000 |
pointer :: omp_get_interop_rc_desc |
| 1001 |
integer (omp_interop_kind), intent(in), value :: interop |
| 1002 |
integer (omp_interop_rc_kind), value :: ret_code |
| 1003 |
end function omp_get_interop_rc_desc |
| 1004 |
end interface |
| 1005 |
|
| 1006 |
interface |
| 1007 |
integer(c_int) function omp_get_device_from_uid (uid) |
| 1008 |
use iso_c_binding |
| 1009 |
character, intent(in) :: uid(*) |
| 1010 |
end function omp_get_device_from_uid |
| 1011 |
end interface |
| 1012 |
|
| 1013 |
interface omp_get_uid_from_device |
| 1014 |
! Deviation from OpenMP 6.0: VALUE added. |
| 1015 |
character(:) function omp_get_uid_from_device (device_num) |
| 1016 |
use iso_c_binding |
| 1017 |
pointer :: omp_get_uid_from_device |
| 1018 |
integer(c_int32_t), intent(in), value :: device_num |
| 1019 |
end function omp_get_uid_from_device |
| 1020 |
|
| 1021 |
character(:) function omp_get_uid_from_device_8 (device_num) |
| 1022 |
use iso_c_binding |
| 1023 |
pointer :: omp_get_uid_from_device_8 |
| 1024 |
integer(c_int64_t), intent(in), value :: device_num |
| 1025 |
end function omp_get_uid_from_device_8 |
| 1026 |
end interface omp_get_uid_from_device |
| 1027 |
|
| 1028 |
#if _OPENMP >= 201811 |
| 1029 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_get_nested, omp_set_nested |
| 1030 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_kind, omp_lock_hint_none |
| 1031 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_uncontended, omp_lock_hint_contended |
| 1032 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_nonspeculative |
| 1033 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_speculative |
| 1034 |
#endif |
| 1035 |
|
| 1036 |
#if _OPENMP >= 202011 |
| 1037 |
!GCC$ ATTRIBUTES DEPRECATED :: omp_proc_bind_master, omp_atv_sequential |
| 1038 |
#endif |
| 1039 |
|
| 1040 |
end module omp_lib |