xref: /freebsd/contrib/llvm-project/openmp/runtime/src/include/omp.h.var (revision ae7e8a02e6e93455e026036132c4d053b2c12ad9)
1/*
2 * include/omp.h.var
3 */
4
5
6//===----------------------------------------------------------------------===//
7//
8// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
9// See https://llvm.org/LICENSE.txt for license information.
10// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11//
12//===----------------------------------------------------------------------===//
13
14
15#ifndef __OMP_H
16#   define __OMP_H
17
18#   include <stdlib.h>
19#   include <stdint.h>
20
21#   define KMP_VERSION_MAJOR    @LIBOMP_VERSION_MAJOR@
22#   define KMP_VERSION_MINOR    @LIBOMP_VERSION_MINOR@
23#   define KMP_VERSION_BUILD    @LIBOMP_VERSION_BUILD@
24#   define KMP_BUILD_DATE       "@LIBOMP_BUILD_DATE@"
25
26#   ifdef __cplusplus
27    extern "C" {
28#   endif
29
30#   define omp_set_affinity_format   ompc_set_affinity_format
31#   define omp_get_affinity_format   ompc_get_affinity_format
32#   define omp_display_affinity      ompc_display_affinity
33#   define omp_capture_affinity      ompc_capture_affinity
34
35#   if defined(_WIN32)
36#       define __KAI_KMPC_CONVENTION __cdecl
37#       ifndef __KMP_IMP
38#           define __KMP_IMP __declspec(dllimport)
39#       endif
40#   else
41#       define __KAI_KMPC_CONVENTION
42#       ifndef __KMP_IMP
43#           define __KMP_IMP
44#       endif
45#   endif
46
47    /* schedule kind constants */
48    typedef enum omp_sched_t {
49        omp_sched_static  = 1,
50        omp_sched_dynamic = 2,
51        omp_sched_guided  = 3,
52        omp_sched_auto    = 4,
53        omp_sched_monotonic = 0x80000000
54    } omp_sched_t;
55
56    /* set API functions */
57    extern void   __KAI_KMPC_CONVENTION  omp_set_num_threads (int);
58    extern void   __KAI_KMPC_CONVENTION  omp_set_dynamic     (int);
59    extern void   __KAI_KMPC_CONVENTION  omp_set_nested      (int);
60    extern void   __KAI_KMPC_CONVENTION  omp_set_max_active_levels (int);
61    extern void   __KAI_KMPC_CONVENTION  omp_set_schedule          (omp_sched_t, int);
62
63    /* query API functions */
64    extern int    __KAI_KMPC_CONVENTION  omp_get_num_threads  (void);
65    extern int    __KAI_KMPC_CONVENTION  omp_get_dynamic      (void);
66    extern int    __KAI_KMPC_CONVENTION  omp_get_nested       (void);
67    extern int    __KAI_KMPC_CONVENTION  omp_get_max_threads  (void);
68    extern int    __KAI_KMPC_CONVENTION  omp_get_thread_num   (void);
69    extern int    __KAI_KMPC_CONVENTION  omp_get_num_procs    (void);
70    extern int    __KAI_KMPC_CONVENTION  omp_in_parallel      (void);
71    extern int    __KAI_KMPC_CONVENTION  omp_in_final         (void);
72    extern int    __KAI_KMPC_CONVENTION  omp_get_active_level        (void);
73    extern int    __KAI_KMPC_CONVENTION  omp_get_level               (void);
74    extern int    __KAI_KMPC_CONVENTION  omp_get_ancestor_thread_num (int);
75    extern int    __KAI_KMPC_CONVENTION  omp_get_team_size           (int);
76    extern int    __KAI_KMPC_CONVENTION  omp_get_thread_limit        (void);
77    extern int    __KAI_KMPC_CONVENTION  omp_get_max_active_levels   (void);
78    extern void   __KAI_KMPC_CONVENTION  omp_get_schedule            (omp_sched_t *, int *);
79    extern int    __KAI_KMPC_CONVENTION  omp_get_max_task_priority   (void);
80
81    /* lock API functions */
82    typedef struct omp_lock_t {
83        void * _lk;
84    } omp_lock_t;
85
86    extern void   __KAI_KMPC_CONVENTION  omp_init_lock    (omp_lock_t *);
87    extern void   __KAI_KMPC_CONVENTION  omp_set_lock     (omp_lock_t *);
88    extern void   __KAI_KMPC_CONVENTION  omp_unset_lock   (omp_lock_t *);
89    extern void   __KAI_KMPC_CONVENTION  omp_destroy_lock (omp_lock_t *);
90    extern int    __KAI_KMPC_CONVENTION  omp_test_lock    (omp_lock_t *);
91
92    /* nested lock API functions */
93    typedef struct omp_nest_lock_t {
94        void * _lk;
95    } omp_nest_lock_t;
96
97    extern void   __KAI_KMPC_CONVENTION  omp_init_nest_lock    (omp_nest_lock_t *);
98    extern void   __KAI_KMPC_CONVENTION  omp_set_nest_lock     (omp_nest_lock_t *);
99    extern void   __KAI_KMPC_CONVENTION  omp_unset_nest_lock   (omp_nest_lock_t *);
100    extern void   __KAI_KMPC_CONVENTION  omp_destroy_nest_lock (omp_nest_lock_t *);
101    extern int    __KAI_KMPC_CONVENTION  omp_test_nest_lock    (omp_nest_lock_t *);
102
103    /* OpenMP 5.0  Synchronization hints*/
104    typedef enum omp_sync_hint_t {
105        omp_sync_hint_none           = 0,
106        omp_lock_hint_none           = omp_sync_hint_none,
107        omp_sync_hint_uncontended    = 1,
108        omp_lock_hint_uncontended    = omp_sync_hint_uncontended,
109        omp_sync_hint_contended      = (1<<1),
110        omp_lock_hint_contended      = omp_sync_hint_contended,
111        omp_sync_hint_nonspeculative = (1<<2),
112        omp_lock_hint_nonspeculative = omp_sync_hint_nonspeculative,
113        omp_sync_hint_speculative    = (1<<3),
114        omp_lock_hint_speculative    = omp_sync_hint_speculative,
115        kmp_lock_hint_hle            = (1<<16),
116        kmp_lock_hint_rtm            = (1<<17),
117        kmp_lock_hint_adaptive       = (1<<18)
118    } omp_sync_hint_t;
119
120    /* lock hint type for dynamic user lock */
121    typedef omp_sync_hint_t omp_lock_hint_t;
122
123    /* hinted lock initializers */
124    extern void __KAI_KMPC_CONVENTION omp_init_lock_with_hint(omp_lock_t *, omp_lock_hint_t);
125    extern void __KAI_KMPC_CONVENTION omp_init_nest_lock_with_hint(omp_nest_lock_t *, omp_lock_hint_t);
126
127    /* time API functions */
128    extern double __KAI_KMPC_CONVENTION  omp_get_wtime (void);
129    extern double __KAI_KMPC_CONVENTION  omp_get_wtick (void);
130
131    /* OpenMP 4.0 */
132    extern int  __KAI_KMPC_CONVENTION  omp_get_default_device (void);
133    extern void __KAI_KMPC_CONVENTION  omp_set_default_device (int);
134    extern int  __KAI_KMPC_CONVENTION  omp_is_initial_device (void);
135    extern int  __KAI_KMPC_CONVENTION  omp_get_num_devices (void);
136    extern int  __KAI_KMPC_CONVENTION  omp_get_num_teams (void);
137    extern int  __KAI_KMPC_CONVENTION  omp_get_team_num (void);
138    extern int  __KAI_KMPC_CONVENTION  omp_get_cancellation (void);
139
140    /* OpenMP 4.5 */
141    extern int   __KAI_KMPC_CONVENTION  omp_get_initial_device (void);
142    extern void* __KAI_KMPC_CONVENTION  omp_target_alloc(size_t, int);
143    extern void  __KAI_KMPC_CONVENTION  omp_target_free(void *, int);
144    extern int   __KAI_KMPC_CONVENTION  omp_target_is_present(void *, int);
145    extern int   __KAI_KMPC_CONVENTION  omp_target_memcpy(void *, void *, size_t, size_t, size_t, int, int);
146    extern int   __KAI_KMPC_CONVENTION  omp_target_memcpy_rect(void *, void *, size_t, int, const size_t *,
147                                            const size_t *, const size_t *, const size_t *, const size_t *, int, int);
148    extern int   __KAI_KMPC_CONVENTION  omp_target_associate_ptr(void *, void *, size_t, size_t, int);
149    extern int   __KAI_KMPC_CONVENTION  omp_target_disassociate_ptr(void *, int);
150
151    /* OpenMP 5.0 */
152    extern int   __KAI_KMPC_CONVENTION  omp_get_device_num (void);
153    typedef void * omp_depend_t;
154
155    /* OpenMP 5.1 interop */
156    typedef intptr_t omp_intptr_t;
157
158    /* 0..omp_get_num_interop_properties()-1 are reserved for implementation-defined properties */
159    typedef enum omp_interop_property {
160        omp_ipr_fr_id = -1,
161        omp_ipr_fr_name = -2,
162        omp_ipr_vendor = -3,
163        omp_ipr_vendor_name = -4,
164        omp_ipr_device_num = -5,
165        omp_ipr_platform = -6,
166        omp_ipr_device = -7,
167        omp_ipr_device_context = -8,
168        omp_ipr_targetsync = -9,
169        omp_ipr_first = -9
170    } omp_interop_property_t;
171
172    #define omp_interop_none 0
173
174    typedef enum omp_interop_rc {
175        omp_irc_no_value = 1,
176        omp_irc_success = 0,
177        omp_irc_empty = -1,
178        omp_irc_out_of_range = -2,
179        omp_irc_type_int = -3,
180        omp_irc_type_ptr = -4,
181        omp_irc_type_str = -5,
182        omp_irc_other = -6
183    } omp_interop_rc_t;
184
185    typedef void * omp_interop_t;
186
187    /*!
188     * The `omp_get_num_interop_properties` routine retrieves the number of implementation-defined properties available for an `omp_interop_t` object.
189     */
190    extern int          __KAI_KMPC_CONVENTION  omp_get_num_interop_properties(const omp_interop_t);
191    /*!
192     * The `omp_get_interop_int` routine retrieves an integer property from an `omp_interop_t` object.
193     */
194    extern omp_intptr_t __KAI_KMPC_CONVENTION  omp_get_interop_int(const omp_interop_t, omp_interop_property_t, int *);
195    /*!
196     * The `omp_get_interop_ptr` routine retrieves a pointer property from an `omp_interop_t` object.
197     */
198    extern void *       __KAI_KMPC_CONVENTION  omp_get_interop_ptr(const omp_interop_t, omp_interop_property_t, int *);
199    /*!
200     * The `omp_get_interop_str` routine retrieves a string property from an `omp_interop_t` object.
201     */
202    extern const char * __KAI_KMPC_CONVENTION  omp_get_interop_str(const omp_interop_t, omp_interop_property_t, int *);
203    /*!
204     * The `omp_get_interop_name` routine retrieves a property name from an `omp_interop_t` object.
205     */
206    extern const char * __KAI_KMPC_CONVENTION  omp_get_interop_name(const omp_interop_t, omp_interop_property_t);
207    /*!
208     * The `omp_get_interop_type_desc` routine retrieves a description of the type of a property associated with an `omp_interop_t` object.
209     */
210    extern const char * __KAI_KMPC_CONVENTION  omp_get_interop_type_desc(const omp_interop_t, omp_interop_property_t);
211    /*!
212     * The `omp_get_interop_rc_desc` routine retrieves a description of the return code associated with an `omp_interop_t` object.
213     */
214    extern const char * __KAI_KMPC_CONVENTION  omp_get_interop_rc_desc(const omp_interop_rc_t, omp_interop_rc_t);
215
216    /* OpenMP 5.1 device memory routines */
217
218    /*!
219     * The `omp_target_memcpy_async` routine asynchronously performs a copy between any combination of host and device pointers.
220     */
221    extern int    __KAI_KMPC_CONVENTION  omp_target_memcpy_async(void *, const void *, size_t, size_t, size_t, int,
222                                             int, int, omp_depend_t *);
223    /*!
224     * The `omp_target_memcpy_rect_async` routine asynchronously performs a copy between any combination of host and device pointers.
225     */
226    extern int    __KAI_KMPC_CONVENTION  omp_target_memcpy_rect_async(void *, const void *, size_t, int, const size_t *,
227                                             const size_t *, const size_t *, const size_t *, const size_t *, int, int,
228                                             int, omp_depend_t *);
229    /*!
230     * The `omp_get_mapped_ptr` routine returns the device pointer that is associated with a host pointer for a given device.
231     */
232    extern void * __KAI_KMPC_CONVENTION  omp_get_mapped_ptr(const void *, int);
233
234    /* kmp API functions */
235    extern int    __KAI_KMPC_CONVENTION  kmp_get_stacksize          (void);
236    extern void   __KAI_KMPC_CONVENTION  kmp_set_stacksize          (int);
237    extern size_t __KAI_KMPC_CONVENTION  kmp_get_stacksize_s        (void);
238    extern void   __KAI_KMPC_CONVENTION  kmp_set_stacksize_s        (size_t);
239    extern int    __KAI_KMPC_CONVENTION  kmp_get_blocktime          (void);
240    extern int    __KAI_KMPC_CONVENTION  kmp_get_library            (void);
241    extern void   __KAI_KMPC_CONVENTION  kmp_set_blocktime          (int);
242    extern void   __KAI_KMPC_CONVENTION  kmp_set_library            (int);
243    extern void   __KAI_KMPC_CONVENTION  kmp_set_library_serial     (void);
244    extern void   __KAI_KMPC_CONVENTION  kmp_set_library_turnaround (void);
245    extern void   __KAI_KMPC_CONVENTION  kmp_set_library_throughput (void);
246    extern void   __KAI_KMPC_CONVENTION  kmp_set_defaults           (char const *);
247    extern void   __KAI_KMPC_CONVENTION  kmp_set_disp_num_buffers   (int);
248
249    /* Intel affinity API */
250    typedef void * kmp_affinity_mask_t;
251
252    extern int    __KAI_KMPC_CONVENTION  kmp_set_affinity             (kmp_affinity_mask_t *);
253    extern int    __KAI_KMPC_CONVENTION  kmp_get_affinity             (kmp_affinity_mask_t *);
254    extern int    __KAI_KMPC_CONVENTION  kmp_get_affinity_max_proc    (void);
255    extern void   __KAI_KMPC_CONVENTION  kmp_create_affinity_mask     (kmp_affinity_mask_t *);
256    extern void   __KAI_KMPC_CONVENTION  kmp_destroy_affinity_mask    (kmp_affinity_mask_t *);
257    extern int    __KAI_KMPC_CONVENTION  kmp_set_affinity_mask_proc   (int, kmp_affinity_mask_t *);
258    extern int    __KAI_KMPC_CONVENTION  kmp_unset_affinity_mask_proc (int, kmp_affinity_mask_t *);
259    extern int    __KAI_KMPC_CONVENTION  kmp_get_affinity_mask_proc   (int, kmp_affinity_mask_t *);
260
261    /* OpenMP 4.0 affinity API */
262    typedef enum omp_proc_bind_t {
263        omp_proc_bind_false = 0,
264        omp_proc_bind_true = 1,
265        omp_proc_bind_master = 2,
266        omp_proc_bind_close = 3,
267        omp_proc_bind_spread = 4
268    } omp_proc_bind_t;
269
270    extern omp_proc_bind_t __KAI_KMPC_CONVENTION omp_get_proc_bind (void);
271
272    /* OpenMP 4.5 affinity API */
273    extern int  __KAI_KMPC_CONVENTION omp_get_num_places (void);
274    extern int  __KAI_KMPC_CONVENTION omp_get_place_num_procs (int);
275    extern void __KAI_KMPC_CONVENTION omp_get_place_proc_ids (int, int *);
276    extern int  __KAI_KMPC_CONVENTION omp_get_place_num (void);
277    extern int  __KAI_KMPC_CONVENTION omp_get_partition_num_places (void);
278    extern void __KAI_KMPC_CONVENTION omp_get_partition_place_nums (int *);
279
280    extern void * __KAI_KMPC_CONVENTION  kmp_malloc  (size_t);
281    extern void * __KAI_KMPC_CONVENTION  kmp_aligned_malloc  (size_t, size_t);
282    extern void * __KAI_KMPC_CONVENTION  kmp_calloc  (size_t, size_t);
283    extern void * __KAI_KMPC_CONVENTION  kmp_realloc (void *, size_t);
284    extern void   __KAI_KMPC_CONVENTION  kmp_free    (void *);
285
286    extern void   __KAI_KMPC_CONVENTION  kmp_set_warnings_on(void);
287    extern void   __KAI_KMPC_CONVENTION  kmp_set_warnings_off(void);
288
289    /* OpenMP 5.0 Tool Control */
290    typedef enum omp_control_tool_result_t {
291        omp_control_tool_notool = -2,
292        omp_control_tool_nocallback = -1,
293        omp_control_tool_success = 0,
294        omp_control_tool_ignored = 1
295    } omp_control_tool_result_t;
296
297    typedef enum omp_control_tool_t {
298        omp_control_tool_start = 1,
299        omp_control_tool_pause = 2,
300        omp_control_tool_flush = 3,
301        omp_control_tool_end = 4
302    } omp_control_tool_t;
303
304    extern int __KAI_KMPC_CONVENTION omp_control_tool(int, int, void*);
305
306    /* OpenMP 5.0 Memory Management */
307    typedef uintptr_t omp_uintptr_t;
308
309    typedef enum {
310        omp_atk_sync_hint = 1,
311        omp_atk_alignment = 2,
312        omp_atk_access = 3,
313        omp_atk_pool_size = 4,
314        omp_atk_fallback = 5,
315        omp_atk_fb_data = 6,
316        omp_atk_pinned = 7,
317        omp_atk_partition = 8
318    } omp_alloctrait_key_t;
319
320    typedef enum {
321        omp_atv_false = 0,
322        omp_atv_true = 1,
323        omp_atv_contended = 3,
324        omp_atv_uncontended = 4,
325        omp_atv_serialized = 5,
326        omp_atv_sequential = omp_atv_serialized, // (deprecated)
327        omp_atv_private = 6,
328        omp_atv_all = 7,
329        omp_atv_thread = 8,
330        omp_atv_pteam = 9,
331        omp_atv_cgroup = 10,
332        omp_atv_default_mem_fb = 11,
333        omp_atv_null_fb = 12,
334        omp_atv_abort_fb = 13,
335        omp_atv_allocator_fb = 14,
336        omp_atv_environment = 15,
337        omp_atv_nearest = 16,
338        omp_atv_blocked = 17,
339        omp_atv_interleaved = 18
340    } omp_alloctrait_value_t;
341    #define omp_atv_default ((omp_uintptr_t)-1)
342
343    typedef struct {
344        omp_alloctrait_key_t key;
345        omp_uintptr_t value;
346    } omp_alloctrait_t;
347
348#   if defined(_WIN32)
349    // On Windows cl and icl do not support 64-bit enum, let's use integer then.
350    typedef omp_uintptr_t omp_allocator_handle_t;
351    extern __KMP_IMP omp_allocator_handle_t const omp_null_allocator;
352    extern __KMP_IMP omp_allocator_handle_t const omp_default_mem_alloc;
353    extern __KMP_IMP omp_allocator_handle_t const omp_large_cap_mem_alloc;
354    extern __KMP_IMP omp_allocator_handle_t const omp_const_mem_alloc;
355    extern __KMP_IMP omp_allocator_handle_t const omp_high_bw_mem_alloc;
356    extern __KMP_IMP omp_allocator_handle_t const omp_low_lat_mem_alloc;
357    extern __KMP_IMP omp_allocator_handle_t const omp_cgroup_mem_alloc;
358    extern __KMP_IMP omp_allocator_handle_t const omp_pteam_mem_alloc;
359    extern __KMP_IMP omp_allocator_handle_t const omp_thread_mem_alloc;
360    typedef omp_uintptr_t omp_memspace_handle_t;
361    extern __KMP_IMP omp_memspace_handle_t const omp_default_mem_space;
362    extern __KMP_IMP omp_memspace_handle_t const omp_large_cap_mem_space;
363    extern __KMP_IMP omp_memspace_handle_t const omp_const_mem_space;
364    extern __KMP_IMP omp_memspace_handle_t const omp_high_bw_mem_space;
365    extern __KMP_IMP omp_memspace_handle_t const omp_low_lat_mem_space;
366#   else
367#       if __cplusplus >= 201103
368    typedef enum omp_allocator_handle_t : omp_uintptr_t
369#       else
370    typedef enum omp_allocator_handle_t
371#       endif
372    {
373      omp_null_allocator = 0,
374      omp_default_mem_alloc = 1,
375      omp_large_cap_mem_alloc = 2,
376      omp_const_mem_alloc = 3,
377      omp_high_bw_mem_alloc = 4,
378      omp_low_lat_mem_alloc = 5,
379      omp_cgroup_mem_alloc = 6,
380      omp_pteam_mem_alloc = 7,
381      omp_thread_mem_alloc = 8,
382      KMP_ALLOCATOR_MAX_HANDLE = UINTPTR_MAX
383    } omp_allocator_handle_t;
384#       if __cplusplus >= 201103
385    typedef enum omp_memspace_handle_t : omp_uintptr_t
386#       else
387    typedef enum omp_memspace_handle_t
388#       endif
389    {
390      omp_default_mem_space = 0,
391      omp_large_cap_mem_space = 1,
392      omp_const_mem_space = 2,
393      omp_high_bw_mem_space = 3,
394      omp_low_lat_mem_space = 4,
395      KMP_MEMSPACE_MAX_HANDLE = UINTPTR_MAX
396    } omp_memspace_handle_t;
397#   endif
398    extern omp_allocator_handle_t __KAI_KMPC_CONVENTION omp_init_allocator(omp_memspace_handle_t m,
399                                                       int ntraits, omp_alloctrait_t traits[]);
400    extern void __KAI_KMPC_CONVENTION omp_destroy_allocator(omp_allocator_handle_t allocator);
401
402    extern void __KAI_KMPC_CONVENTION omp_set_default_allocator(omp_allocator_handle_t a);
403    extern omp_allocator_handle_t __KAI_KMPC_CONVENTION omp_get_default_allocator(void);
404#   ifdef __cplusplus
405    extern void *__KAI_KMPC_CONVENTION omp_alloc(size_t size, omp_allocator_handle_t a = omp_null_allocator);
406    extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t a = omp_null_allocator);
407    extern void *__KAI_KMPC_CONVENTION omp_realloc(void *ptr, size_t size,
408                                                   omp_allocator_handle_t allocator = omp_null_allocator,
409                                                   omp_allocator_handle_t free_allocator = omp_null_allocator);
410    extern void __KAI_KMPC_CONVENTION omp_free(void * ptr, omp_allocator_handle_t a = omp_null_allocator);
411#   else
412    extern void *__KAI_KMPC_CONVENTION omp_alloc(size_t size, omp_allocator_handle_t a);
413    extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t a);
414    extern void *__KAI_KMPC_CONVENTION omp_realloc(void *ptr, size_t size, omp_allocator_handle_t allocator,
415                                                   omp_allocator_handle_t free_allocator);
416    extern void __KAI_KMPC_CONVENTION omp_free(void *ptr, omp_allocator_handle_t a);
417#   endif
418
419    /* OpenMP 5.0 Affinity Format */
420    extern void __KAI_KMPC_CONVENTION omp_set_affinity_format(char const *);
421    extern size_t __KAI_KMPC_CONVENTION omp_get_affinity_format(char *, size_t);
422    extern void __KAI_KMPC_CONVENTION omp_display_affinity(char const *);
423    extern size_t __KAI_KMPC_CONVENTION omp_capture_affinity(char *, size_t, char const *);
424
425    /* OpenMP 5.0 events */
426#   if defined(_WIN32)
427    // On Windows cl and icl do not support 64-bit enum, let's use integer then.
428    typedef omp_uintptr_t omp_event_handle_t;
429#   else
430    typedef enum omp_event_handle_t { KMP_EVENT_MAX_HANDLE = UINTPTR_MAX } omp_event_handle_t;
431#   endif
432    extern void __KAI_KMPC_CONVENTION omp_fulfill_event ( omp_event_handle_t event );
433
434    /* OpenMP 5.0 Pause Resources */
435    typedef enum omp_pause_resource_t {
436      omp_pause_resume = 0,
437      omp_pause_soft = 1,
438      omp_pause_hard = 2
439    } omp_pause_resource_t;
440    extern int __KAI_KMPC_CONVENTION omp_pause_resource(omp_pause_resource_t, int);
441    extern int __KAI_KMPC_CONVENTION omp_pause_resource_all(omp_pause_resource_t);
442
443    extern int __KAI_KMPC_CONVENTION omp_get_supported_active_levels(void);
444
445    /* OpenMP 5.1 Display Environment */
446    extern void omp_display_env(int verbose);
447
448#   undef __KAI_KMPC_CONVENTION
449#   undef __KMP_IMP
450
451    /* Warning:
452       The following typedefs are not standard, deprecated and will be removed in a future release.
453    */
454    typedef int     omp_int_t;
455    typedef double  omp_wtime_t;
456
457#   ifdef __cplusplus
458    }
459#   endif
460
461#endif /* __OMP_H */
462