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