xref: /freebsd/contrib/llvm-project/openmp/runtime/src/kmp_ftn_os.h (revision 54c1a65736ec012b583ade1d53c477e182c574e4)
1 /*
2  * kmp_ftn_os.h -- KPTS Fortran defines header file.
3  */
4 
5 //===----------------------------------------------------------------------===//
6 //
7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8 // See https://llvm.org/LICENSE.txt for license information.
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef KMP_FTN_OS_H
14 #define KMP_FTN_OS_H
15 
16 // KMP_FNT_ENTRIES may be one of: KMP_FTN_PLAIN, KMP_FTN_UPPER, KMP_FTN_APPEND,
17 // KMP_FTN_UAPPEND.
18 
19 /* -------------------------- External definitions ------------------------ */
20 
21 #if KMP_FTN_ENTRIES == KMP_FTN_PLAIN
22 
23 #define FTN_SET_STACKSIZE kmp_set_stacksize
24 #define FTN_SET_STACKSIZE_S kmp_set_stacksize_s
25 #define FTN_GET_STACKSIZE kmp_get_stacksize
26 #define FTN_GET_STACKSIZE_S kmp_get_stacksize_s
27 #define FTN_SET_BLOCKTIME kmp_set_blocktime
28 #define FTN_GET_BLOCKTIME kmp_get_blocktime
29 #define FTN_SET_LIBRARY_SERIAL kmp_set_library_serial
30 #define FTN_SET_LIBRARY_TURNAROUND kmp_set_library_turnaround
31 #define FTN_SET_LIBRARY_THROUGHPUT kmp_set_library_throughput
32 #define FTN_SET_LIBRARY kmp_set_library
33 #define FTN_GET_LIBRARY kmp_get_library
34 #define FTN_SET_DEFAULTS kmp_set_defaults
35 #define FTN_SET_DISP_NUM_BUFFERS kmp_set_disp_num_buffers
36 #define FTN_SET_AFFINITY kmp_set_affinity
37 #define FTN_GET_AFFINITY kmp_get_affinity
38 #define FTN_GET_AFFINITY_MAX_PROC kmp_get_affinity_max_proc
39 #define FTN_CREATE_AFFINITY_MASK kmp_create_affinity_mask
40 #define FTN_DESTROY_AFFINITY_MASK kmp_destroy_affinity_mask
41 #define FTN_SET_AFFINITY_MASK_PROC kmp_set_affinity_mask_proc
42 #define FTN_UNSET_AFFINITY_MASK_PROC kmp_unset_affinity_mask_proc
43 #define FTN_GET_AFFINITY_MASK_PROC kmp_get_affinity_mask_proc
44 
45 #define FTN_MALLOC kmp_malloc
46 #define FTN_ALIGNED_MALLOC kmp_aligned_malloc
47 #define FTN_CALLOC kmp_calloc
48 #define FTN_REALLOC kmp_realloc
49 #define FTN_KFREE kmp_free
50 
51 #define FTN_GET_NUM_KNOWN_THREADS kmp_get_num_known_threads
52 
53 #define FTN_SET_NUM_THREADS omp_set_num_threads
54 #define FTN_GET_NUM_THREADS omp_get_num_threads
55 #define FTN_GET_MAX_THREADS omp_get_max_threads
56 #define FTN_GET_THREAD_NUM omp_get_thread_num
57 #define FTN_GET_NUM_PROCS omp_get_num_procs
58 #define FTN_SET_DYNAMIC omp_set_dynamic
59 #define FTN_GET_DYNAMIC omp_get_dynamic
60 #define FTN_SET_NESTED omp_set_nested
61 #define FTN_GET_NESTED omp_get_nested
62 #define FTN_IN_PARALLEL omp_in_parallel
63 #define FTN_GET_THREAD_LIMIT omp_get_thread_limit
64 #define FTN_SET_SCHEDULE omp_set_schedule
65 #define FTN_GET_SCHEDULE omp_get_schedule
66 #define FTN_SET_MAX_ACTIVE_LEVELS omp_set_max_active_levels
67 #define FTN_GET_MAX_ACTIVE_LEVELS omp_get_max_active_levels
68 #define FTN_GET_ACTIVE_LEVEL omp_get_active_level
69 #define FTN_GET_LEVEL omp_get_level
70 #define FTN_GET_ANCESTOR_THREAD_NUM omp_get_ancestor_thread_num
71 #define FTN_GET_TEAM_SIZE omp_get_team_size
72 #define FTN_IN_FINAL omp_in_final
73 #define FTN_GET_PROC_BIND omp_get_proc_bind
74 #define FTN_GET_NUM_TEAMS omp_get_num_teams
75 #define FTN_GET_TEAM_NUM omp_get_team_num
76 #define FTN_INIT_LOCK omp_init_lock
77 #if KMP_USE_DYNAMIC_LOCK
78 #define FTN_INIT_LOCK_WITH_HINT omp_init_lock_with_hint
79 #define FTN_INIT_NEST_LOCK_WITH_HINT omp_init_nest_lock_with_hint
80 #endif
81 #define FTN_DESTROY_LOCK omp_destroy_lock
82 #define FTN_SET_LOCK omp_set_lock
83 #define FTN_UNSET_LOCK omp_unset_lock
84 #define FTN_TEST_LOCK omp_test_lock
85 #define FTN_INIT_NEST_LOCK omp_init_nest_lock
86 #define FTN_DESTROY_NEST_LOCK omp_destroy_nest_lock
87 #define FTN_SET_NEST_LOCK omp_set_nest_lock
88 #define FTN_UNSET_NEST_LOCK omp_unset_nest_lock
89 #define FTN_TEST_NEST_LOCK omp_test_nest_lock
90 
91 #define FTN_SET_WARNINGS_ON kmp_set_warnings_on
92 #define FTN_SET_WARNINGS_OFF kmp_set_warnings_off
93 
94 #define FTN_GET_WTIME omp_get_wtime
95 #define FTN_GET_WTICK omp_get_wtick
96 
97 #define FTN_GET_NUM_DEVICES omp_get_num_devices
98 #define FTN_GET_DEFAULT_DEVICE omp_get_default_device
99 #define FTN_SET_DEFAULT_DEVICE omp_set_default_device
100 #define FTN_IS_INITIAL_DEVICE omp_is_initial_device
101 
102 #define FTN_GET_CANCELLATION omp_get_cancellation
103 #define FTN_GET_CANCELLATION_STATUS kmp_get_cancellation_status
104 
105 #define FTN_GET_MAX_TASK_PRIORITY omp_get_max_task_priority
106 #define FTN_GET_NUM_PLACES omp_get_num_places
107 #define FTN_GET_PLACE_NUM_PROCS omp_get_place_num_procs
108 #define FTN_GET_PLACE_PROC_IDS omp_get_place_proc_ids
109 #define FTN_GET_PLACE_NUM omp_get_place_num
110 #define FTN_GET_PARTITION_NUM_PLACES omp_get_partition_num_places
111 #define FTN_GET_PARTITION_PLACE_NUMS omp_get_partition_place_nums
112 #define FTN_GET_INITIAL_DEVICE omp_get_initial_device
113 #ifdef KMP_STUB
114 #define FTN_TARGET_ALLOC omp_target_alloc
115 #define FTN_TARGET_FREE omp_target_free
116 #define FTN_TARGET_IS_PRESENT omp_target_is_present
117 #define FTN_TARGET_MEMCPY omp_target_memcpy
118 #define FTN_TARGET_MEMCPY_RECT omp_target_memcpy_rect
119 #define FTN_TARGET_ASSOCIATE_PTR omp_target_associate_ptr
120 #define FTN_TARGET_DISASSOCIATE_PTR omp_target_disassociate_ptr
121 #endif
122 
123 #define FTN_CONTROL_TOOL omp_control_tool
124 #define FTN_INIT_ALLOCATOR omp_init_allocator
125 #define FTN_DESTROY_ALLOCATOR omp_destroy_allocator
126 #define FTN_SET_DEFAULT_ALLOCATOR omp_set_default_allocator
127 #define FTN_GET_DEFAULT_ALLOCATOR omp_get_default_allocator
128 #define FTN_GET_DEVICE_NUM omp_get_device_num
129 #define FTN_SET_AFFINITY_FORMAT omp_set_affinity_format
130 #define FTN_GET_AFFINITY_FORMAT omp_get_affinity_format
131 #define FTN_DISPLAY_AFFINITY omp_display_affinity
132 #define FTN_CAPTURE_AFFINITY omp_capture_affinity
133 #define FTN_PAUSE_RESOURCE omp_pause_resource
134 #define FTN_PAUSE_RESOURCE_ALL omp_pause_resource_all
135 #define FTN_GET_SUPPORTED_ACTIVE_LEVELS omp_get_supported_active_levels
136 #define FTN_DISPLAY_ENV omp_display_env
137 #define FTN_FULFILL_EVENT omp_fulfill_event
138 #define FTN_SET_NUM_TEAMS omp_set_num_teams
139 #define FTN_GET_MAX_TEAMS omp_get_max_teams
140 #define FTN_SET_TEAMS_THREAD_LIMIT omp_set_teams_thread_limit
141 #define FTN_GET_TEAMS_THREAD_LIMIT omp_get_teams_thread_limit
142 
143 #endif /* KMP_FTN_PLAIN */
144 
145 /* ------------------------------------------------------------------------ */
146 
147 #if KMP_FTN_ENTRIES == KMP_FTN_APPEND
148 
149 #define FTN_SET_STACKSIZE kmp_set_stacksize_
150 #define FTN_SET_STACKSIZE_S kmp_set_stacksize_s_
151 #define FTN_GET_STACKSIZE kmp_get_stacksize_
152 #define FTN_GET_STACKSIZE_S kmp_get_stacksize_s_
153 #define FTN_SET_BLOCKTIME kmp_set_blocktime_
154 #define FTN_GET_BLOCKTIME kmp_get_blocktime_
155 #define FTN_SET_LIBRARY_SERIAL kmp_set_library_serial_
156 #define FTN_SET_LIBRARY_TURNAROUND kmp_set_library_turnaround_
157 #define FTN_SET_LIBRARY_THROUGHPUT kmp_set_library_throughput_
158 #define FTN_SET_LIBRARY kmp_set_library_
159 #define FTN_GET_LIBRARY kmp_get_library_
160 #define FTN_SET_DEFAULTS kmp_set_defaults_
161 #define FTN_SET_DISP_NUM_BUFFERS kmp_set_disp_num_buffers_
162 #define FTN_SET_AFFINITY kmp_set_affinity_
163 #define FTN_GET_AFFINITY kmp_get_affinity_
164 #define FTN_GET_AFFINITY_MAX_PROC kmp_get_affinity_max_proc_
165 #define FTN_CREATE_AFFINITY_MASK kmp_create_affinity_mask_
166 #define FTN_DESTROY_AFFINITY_MASK kmp_destroy_affinity_mask_
167 #define FTN_SET_AFFINITY_MASK_PROC kmp_set_affinity_mask_proc_
168 #define FTN_UNSET_AFFINITY_MASK_PROC kmp_unset_affinity_mask_proc_
169 #define FTN_GET_AFFINITY_MASK_PROC kmp_get_affinity_mask_proc_
170 
171 #define FTN_MALLOC kmp_malloc_
172 #define FTN_ALIGNED_MALLOC kmp_aligned_malloc_
173 #define FTN_CALLOC kmp_calloc_
174 #define FTN_REALLOC kmp_realloc_
175 #define FTN_KFREE kmp_free_
176 
177 #define FTN_GET_NUM_KNOWN_THREADS kmp_get_num_known_threads_
178 
179 #define FTN_SET_NUM_THREADS omp_set_num_threads_
180 #define FTN_GET_NUM_THREADS omp_get_num_threads_
181 #define FTN_GET_MAX_THREADS omp_get_max_threads_
182 #define FTN_GET_THREAD_NUM omp_get_thread_num_
183 #define FTN_GET_NUM_PROCS omp_get_num_procs_
184 #define FTN_SET_DYNAMIC omp_set_dynamic_
185 #define FTN_GET_DYNAMIC omp_get_dynamic_
186 #define FTN_SET_NESTED omp_set_nested_
187 #define FTN_GET_NESTED omp_get_nested_
188 #define FTN_IN_PARALLEL omp_in_parallel_
189 #define FTN_GET_THREAD_LIMIT omp_get_thread_limit_
190 #define FTN_SET_SCHEDULE omp_set_schedule_
191 #define FTN_GET_SCHEDULE omp_get_schedule_
192 #define FTN_SET_MAX_ACTIVE_LEVELS omp_set_max_active_levels_
193 #define FTN_GET_MAX_ACTIVE_LEVELS omp_get_max_active_levels_
194 #define FTN_GET_ACTIVE_LEVEL omp_get_active_level_
195 #define FTN_GET_LEVEL omp_get_level_
196 #define FTN_GET_ANCESTOR_THREAD_NUM omp_get_ancestor_thread_num_
197 #define FTN_GET_TEAM_SIZE omp_get_team_size_
198 #define FTN_IN_FINAL omp_in_final_
199 #define FTN_GET_PROC_BIND omp_get_proc_bind_
200 #define FTN_GET_NUM_TEAMS omp_get_num_teams_
201 #define FTN_GET_TEAM_NUM omp_get_team_num_
202 #define FTN_INIT_LOCK omp_init_lock_
203 #if KMP_USE_DYNAMIC_LOCK
204 #define FTN_INIT_LOCK_WITH_HINT omp_init_lock_with_hint_
205 #define FTN_INIT_NEST_LOCK_WITH_HINT omp_init_nest_lock_with_hint_
206 #endif
207 #define FTN_DESTROY_LOCK omp_destroy_lock_
208 #define FTN_SET_LOCK omp_set_lock_
209 #define FTN_UNSET_LOCK omp_unset_lock_
210 #define FTN_TEST_LOCK omp_test_lock_
211 #define FTN_INIT_NEST_LOCK omp_init_nest_lock_
212 #define FTN_DESTROY_NEST_LOCK omp_destroy_nest_lock_
213 #define FTN_SET_NEST_LOCK omp_set_nest_lock_
214 #define FTN_UNSET_NEST_LOCK omp_unset_nest_lock_
215 #define FTN_TEST_NEST_LOCK omp_test_nest_lock_
216 
217 #define FTN_SET_WARNINGS_ON kmp_set_warnings_on_
218 #define FTN_SET_WARNINGS_OFF kmp_set_warnings_off_
219 
220 #define FTN_GET_WTIME omp_get_wtime_
221 #define FTN_GET_WTICK omp_get_wtick_
222 
223 #define FTN_GET_NUM_DEVICES omp_get_num_devices_
224 #define FTN_GET_DEFAULT_DEVICE omp_get_default_device_
225 #define FTN_SET_DEFAULT_DEVICE omp_set_default_device_
226 #define FTN_IS_INITIAL_DEVICE omp_is_initial_device_
227 
228 #define FTN_GET_CANCELLATION omp_get_cancellation_
229 #define FTN_GET_CANCELLATION_STATUS kmp_get_cancellation_status_
230 
231 #define FTN_GET_MAX_TASK_PRIORITY omp_get_max_task_priority_
232 #define FTN_GET_NUM_PLACES omp_get_num_places_
233 #define FTN_GET_PLACE_NUM_PROCS omp_get_place_num_procs_
234 #define FTN_GET_PLACE_PROC_IDS omp_get_place_proc_ids_
235 #define FTN_GET_PLACE_NUM omp_get_place_num_
236 #define FTN_GET_PARTITION_NUM_PLACES omp_get_partition_num_places_
237 #define FTN_GET_PARTITION_PLACE_NUMS omp_get_partition_place_nums_
238 #define FTN_GET_INITIAL_DEVICE omp_get_initial_device_
239 #ifdef KMP_STUB
240 #define FTN_TARGET_ALLOC omp_target_alloc_
241 #define FTN_TARGET_FREE omp_target_free_
242 #define FTN_TARGET_IS_PRESENT omp_target_is_present_
243 #define FTN_TARGET_MEMCPY omp_target_memcpy_
244 #define FTN_TARGET_MEMCPY_RECT omp_target_memcpy_rect_
245 #define FTN_TARGET_ASSOCIATE_PTR omp_target_associate_ptr_
246 #define FTN_TARGET_DISASSOCIATE_PTR omp_target_disassociate_ptr_
247 #endif
248 
249 #define FTN_CONTROL_TOOL omp_control_tool_
250 #define FTN_INIT_ALLOCATOR omp_init_allocator_
251 #define FTN_DESTROY_ALLOCATOR omp_destroy_allocator_
252 #define FTN_SET_DEFAULT_ALLOCATOR omp_set_default_allocator_
253 #define FTN_GET_DEFAULT_ALLOCATOR omp_get_default_allocator_
254 #define FTN_ALLOC omp_alloc_
255 #define FTN_FREE omp_free_
256 #define FTN_GET_DEVICE_NUM omp_get_device_num_
257 #define FTN_SET_AFFINITY_FORMAT omp_set_affinity_format_
258 #define FTN_GET_AFFINITY_FORMAT omp_get_affinity_format_
259 #define FTN_DISPLAY_AFFINITY omp_display_affinity_
260 #define FTN_CAPTURE_AFFINITY omp_capture_affinity_
261 #define FTN_PAUSE_RESOURCE omp_pause_resource_
262 #define FTN_PAUSE_RESOURCE_ALL omp_pause_resource_all_
263 #define FTN_GET_SUPPORTED_ACTIVE_LEVELS omp_get_supported_active_levels_
264 #define FTN_DISPLAY_ENV omp_display_env_
265 #define FTN_FULFILL_EVENT omp_fulfill_event_
266 #define FTN_SET_NUM_TEAMS omp_set_num_teams_
267 #define FTN_GET_MAX_TEAMS omp_get_max_teams_
268 #define FTN_SET_TEAMS_THREAD_LIMIT omp_set_teams_thread_limit_
269 #define FTN_GET_TEAMS_THREAD_LIMIT omp_get_teams_thread_limit_
270 
271 #endif /* KMP_FTN_APPEND */
272 
273 /* ------------------------------------------------------------------------ */
274 
275 #if KMP_FTN_ENTRIES == KMP_FTN_UPPER
276 
277 #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE
278 #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S
279 #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE
280 #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S
281 #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME
282 #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME
283 #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL
284 #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND
285 #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT
286 #define FTN_SET_LIBRARY KMP_SET_LIBRARY
287 #define FTN_GET_LIBRARY KMP_GET_LIBRARY
288 #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS
289 #define FTN_SET_DISP_NUM_BUFFERS KMP_SET_DISP_NUM_BUFFERS
290 #define FTN_SET_AFFINITY KMP_SET_AFFINITY
291 #define FTN_GET_AFFINITY KMP_GET_AFFINITY
292 #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC
293 #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK
294 #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK
295 #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC
296 #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC
297 #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC
298 
299 #define FTN_MALLOC KMP_MALLOC
300 #define FTN_ALIGNED_MALLOC KMP_ALIGNED_MALLOC
301 #define FTN_CALLOC KMP_CALLOC
302 #define FTN_REALLOC KMP_REALLOC
303 #define FTN_KFREE KMP_FREE
304 
305 #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS
306 
307 #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS
308 #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS
309 #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS
310 #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM
311 #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS
312 #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC
313 #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC
314 #define FTN_SET_NESTED OMP_SET_NESTED
315 #define FTN_GET_NESTED OMP_GET_NESTED
316 #define FTN_IN_PARALLEL OMP_IN_PARALLEL
317 #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT
318 #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE
319 #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE
320 #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS
321 #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS
322 #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL
323 #define FTN_GET_LEVEL OMP_GET_LEVEL
324 #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM
325 #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE
326 #define FTN_IN_FINAL OMP_IN_FINAL
327 #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND
328 #define FTN_GET_NUM_TEAMS OMP_GET_NUM_TEAMS
329 #define FTN_GET_TEAM_NUM OMP_GET_TEAM_NUM
330 #define FTN_INIT_LOCK OMP_INIT_LOCK
331 #if KMP_USE_DYNAMIC_LOCK
332 #define FTN_INIT_LOCK_WITH_HINT OMP_INIT_LOCK_WITH_HINT
333 #define FTN_INIT_NEST_LOCK_WITH_HINT OMP_INIT_NEST_LOCK_WITH_HINT
334 #endif
335 #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK
336 #define FTN_SET_LOCK OMP_SET_LOCK
337 #define FTN_UNSET_LOCK OMP_UNSET_LOCK
338 #define FTN_TEST_LOCK OMP_TEST_LOCK
339 #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK
340 #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK
341 #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK
342 #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK
343 #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK
344 
345 #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON
346 #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF
347 
348 #define FTN_GET_WTIME OMP_GET_WTIME
349 #define FTN_GET_WTICK OMP_GET_WTICK
350 
351 #define FTN_GET_NUM_DEVICES OMP_GET_NUM_DEVICES
352 #define FTN_GET_DEFAULT_DEVICE OMP_GET_DEFAULT_DEVICE
353 #define FTN_SET_DEFAULT_DEVICE OMP_SET_DEFAULT_DEVICE
354 #define FTN_IS_INITIAL_DEVICE OMP_IS_INITIAL_DEVICE
355 
356 #define FTN_GET_CANCELLATION OMP_GET_CANCELLATION
357 #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS
358 
359 #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY
360 #define FTN_GET_NUM_PLACES OMP_GET_NUM_PLACES
361 #define FTN_GET_PLACE_NUM_PROCS OMP_GET_PLACE_NUM_PROCS
362 #define FTN_GET_PLACE_PROC_IDS OMP_GET_PLACE_PROC_IDS
363 #define FTN_GET_PLACE_NUM OMP_GET_PLACE_NUM
364 #define FTN_GET_PARTITION_NUM_PLACES OMP_GET_PARTITION_NUM_PLACES
365 #define FTN_GET_PARTITION_PLACE_NUMS OMP_GET_PARTITION_PLACE_NUMS
366 #define FTN_GET_INITIAL_DEVICE OMP_GET_INITIAL_DEVICE
367 #ifdef KMP_STUB
368 #define FTN_TARGET_ALLOC OMP_TARGET_ALLOC
369 #define FTN_TARGET_FREE OMP_TARGET_FREE
370 #define FTN_TARGET_IS_PRESENT OMP_TARGET_IS_PRESENT
371 #define FTN_TARGET_MEMCPY OMP_TARGET_MEMCPY
372 #define FTN_TARGET_MEMCPY_RECT OMP_TARGET_MEMCPY_RECT
373 #define FTN_TARGET_ASSOCIATE_PTR OMP_TARGET_ASSOCIATE_PTR
374 #define FTN_TARGET_DISASSOCIATE_PTR OMP_TARGET_DISASSOCIATE_PTR
375 #endif
376 
377 #define FTN_CONTROL_TOOL OMP_CONTROL_TOOL
378 #define FTN_INIT_ALLOCATOR OMP_INIT_ALLOCATOR
379 #define FTN_DESTROY_ALLOCATOR OMP_DESTROY_ALLOCATOR
380 #define FTN_SET_DEFAULT_ALLOCATOR OMP_SET_DEFAULT_ALLOCATOR
381 #define FTN_GET_DEFAULT_ALLOCATOR OMP_GET_DEFAULT_ALLOCATOR
382 #define FTN_GET_DEVICE_NUM OMP_GET_DEVICE_NUM
383 #define FTN_SET_AFFINITY_FORMAT OMP_SET_AFFINITY_FORMAT
384 #define FTN_GET_AFFINITY_FORMAT OMP_GET_AFFINITY_FORMAT
385 #define FTN_DISPLAY_AFFINITY OMP_DISPLAY_AFFINITY
386 #define FTN_CAPTURE_AFFINITY OMP_CAPTURE_AFFINITY
387 #define FTN_PAUSE_RESOURCE OMP_PAUSE_RESOURCE
388 #define FTN_PAUSE_RESOURCE_ALL OMP_PAUSE_RESOURCE_ALL
389 #define FTN_GET_SUPPORTED_ACTIVE_LEVELS OMP_GET_SUPPORTED_ACTIVE_LEVELS
390 #define FTN_DISPLAY_ENV OMP_DISPLAY_ENV
391 #define FTN_FULFILL_EVENT OMP_FULFILL_EVENT
392 #define FTN_SET_NUM_TEAMS OMP_SET_NUM_TEAMS
393 #define FTN_GET_MAX_TEAMS OMP_GET_MAX_TEAMS
394 #define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT
395 #define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT
396 
397 #endif /* KMP_FTN_UPPER */
398 
399 /* ------------------------------------------------------------------------ */
400 
401 #if KMP_FTN_ENTRIES == KMP_FTN_UAPPEND
402 
403 #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE_
404 #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S_
405 #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE_
406 #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S_
407 #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME_
408 #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME_
409 #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL_
410 #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND_
411 #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT_
412 #define FTN_SET_LIBRARY KMP_SET_LIBRARY_
413 #define FTN_GET_LIBRARY KMP_GET_LIBRARY_
414 #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS_
415 #define FTN_SET_DISP_NUM_BUFFERS KMP_SET_DISP_NUM_BUFFERS_
416 #define FTN_SET_AFFINITY KMP_SET_AFFINITY_
417 #define FTN_GET_AFFINITY KMP_GET_AFFINITY_
418 #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC_
419 #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK_
420 #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK_
421 #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC_
422 #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC_
423 #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC_
424 
425 #define FTN_MALLOC KMP_MALLOC_
426 #define FTN_ALIGNED_MALLOC KMP_ALIGNED_MALLOC_
427 #define FTN_CALLOC KMP_CALLOC_
428 #define FTN_REALLOC KMP_REALLOC_
429 #define FTN_KFREE KMP_FREE_
430 
431 #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS_
432 
433 #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS_
434 #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS_
435 #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS_
436 #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM_
437 #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS_
438 #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC_
439 #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC_
440 #define FTN_SET_NESTED OMP_SET_NESTED_
441 #define FTN_GET_NESTED OMP_GET_NESTED_
442 #define FTN_IN_PARALLEL OMP_IN_PARALLEL_
443 #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT_
444 #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE_
445 #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE_
446 #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS_
447 #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS_
448 #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL_
449 #define FTN_GET_LEVEL OMP_GET_LEVEL_
450 #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM_
451 #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE_
452 #define FTN_IN_FINAL OMP_IN_FINAL_
453 #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND_
454 #define FTN_GET_NUM_TEAMS OMP_GET_NUM_TEAMS_
455 #define FTN_GET_TEAM_NUM OMP_GET_TEAM_NUM_
456 #define FTN_INIT_LOCK OMP_INIT_LOCK_
457 #if KMP_USE_DYNAMIC_LOCK
458 #define FTN_INIT_LOCK_WITH_HINT OMP_INIT_LOCK_WITH_HINT_
459 #define FTN_INIT_NEST_LOCK_WITH_HINT OMP_INIT_NEST_LOCK_WITH_HINT_
460 #endif
461 #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK_
462 #define FTN_SET_LOCK OMP_SET_LOCK_
463 #define FTN_UNSET_LOCK OMP_UNSET_LOCK_
464 #define FTN_TEST_LOCK OMP_TEST_LOCK_
465 #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK_
466 #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK_
467 #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK_
468 #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK_
469 #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK_
470 
471 #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON_
472 #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF_
473 
474 #define FTN_GET_WTIME OMP_GET_WTIME_
475 #define FTN_GET_WTICK OMP_GET_WTICK_
476 
477 #define FTN_GET_NUM_DEVICES OMP_GET_NUM_DEVICES_
478 #define FTN_GET_DEFAULT_DEVICE OMP_GET_DEFAULT_DEVICE_
479 #define FTN_SET_DEFAULT_DEVICE OMP_SET_DEFAULT_DEVICE_
480 #define FTN_IS_INITIAL_DEVICE OMP_IS_INITIAL_DEVICE_
481 
482 #define FTN_GET_CANCELLATION OMP_GET_CANCELLATION_
483 #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS_
484 
485 #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY_
486 #define FTN_GET_NUM_PLACES OMP_GET_NUM_PLACES_
487 #define FTN_GET_PLACE_NUM_PROCS OMP_GET_PLACE_NUM_PROCS_
488 #define FTN_GET_PLACE_PROC_IDS OMP_GET_PLACE_PROC_IDS_
489 #define FTN_GET_PLACE_NUM OMP_GET_PLACE_NUM_
490 #define FTN_GET_PARTITION_NUM_PLACES OMP_GET_PARTITION_NUM_PLACES_
491 #define FTN_GET_PARTITION_PLACE_NUMS OMP_GET_PARTITION_PLACE_NUMS_
492 #define FTN_GET_INITIAL_DEVICE OMP_GET_INITIAL_DEVICE_
493 #ifdef KMP_STUB
494 #define FTN_TARGET_ALLOC OMP_TARGET_ALLOC_
495 #define FTN_TARGET_FREE OMP_TARGET_FREE_
496 #define FTN_TARGET_IS_PRESENT OMP_TARGET_IS_PRESENT_
497 #define FTN_TARGET_MEMCPY OMP_TARGET_MEMCPY_
498 #define FTN_TARGET_MEMCPY_RECT OMP_TARGET_MEMCPY_RECT_
499 #define FTN_TARGET_ASSOCIATE_PTR OMP_TARGET_ASSOCIATE_PTR_
500 #define FTN_TARGET_DISASSOCIATE_PTR OMP_TARGET_DISASSOCIATE_PTR_
501 #endif
502 
503 #define FTN_CONTROL_TOOL OMP_CONTROL_TOOL_
504 #define FTN_INIT_ALLOCATOR OMP_INIT_ALLOCATOR_
505 #define FTN_DESTROY_ALLOCATOR OMP_DESTROY_ALLOCATOR_
506 #define FTN_SET_DEFAULT_ALLOCATOR OMP_SET_DEFAULT_ALLOCATOR_
507 #define FTN_GET_DEFAULT_ALLOCATOR OMP_GET_DEFAULT_ALLOCATOR_
508 #define FTN_ALLOC OMP_ALLOC_
509 #define FTN_FREE OMP_FREE_
510 #define FTN_GET_DEVICE_NUM OMP_GET_DEVICE_NUM_
511 #define FTN_SET_AFFINITY_FORMAT OMP_SET_AFFINITY_FORMAT_
512 #define FTN_GET_AFFINITY_FORMAT OMP_GET_AFFINITY_FORMAT_
513 #define FTN_DISPLAY_AFFINITY OMP_DISPLAY_AFFINITY_
514 #define FTN_CAPTURE_AFFINITY OMP_CAPTURE_AFFINITY_
515 #define FTN_PAUSE_RESOURCE OMP_PAUSE_RESOURCE_
516 #define FTN_PAUSE_RESOURCE_ALL OMP_PAUSE_RESOURCE_ALL_
517 #define FTN_GET_SUPPORTED_ACTIVE_LEVELS OMP_GET_SUPPORTED_ACTIVE_LEVELS_
518 #define FTN_DISPLAY_ENV OMP_DISPLAY_ENV_
519 #define FTN_FULFILL_EVENT OMP_FULFILL_EVENT_
520 #define FTN_SET_NUM_TEAMS OMP_SET_NUM_TEAMS_
521 #define FTN_GET_MAX_TEAMS OMP_GET_MAX_TEAMS_
522 #define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT_
523 #define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT_
524 
525 #endif /* KMP_FTN_UAPPEND */
526 
527 /* -------------------------- GOMP API NAMES ------------------------ */
528 // All GOMP_1.0 symbols
529 #define KMP_API_NAME_GOMP_ATOMIC_END GOMP_atomic_end
530 #define KMP_API_NAME_GOMP_ATOMIC_START GOMP_atomic_start
531 #define KMP_API_NAME_GOMP_BARRIER GOMP_barrier
532 #define KMP_API_NAME_GOMP_CRITICAL_END GOMP_critical_end
533 #define KMP_API_NAME_GOMP_CRITICAL_NAME_END GOMP_critical_name_end
534 #define KMP_API_NAME_GOMP_CRITICAL_NAME_START GOMP_critical_name_start
535 #define KMP_API_NAME_GOMP_CRITICAL_START GOMP_critical_start
536 #define KMP_API_NAME_GOMP_LOOP_DYNAMIC_NEXT GOMP_loop_dynamic_next
537 #define KMP_API_NAME_GOMP_LOOP_DYNAMIC_START GOMP_loop_dynamic_start
538 #define KMP_API_NAME_GOMP_LOOP_END GOMP_loop_end
539 #define KMP_API_NAME_GOMP_LOOP_END_NOWAIT GOMP_loop_end_nowait
540 #define KMP_API_NAME_GOMP_LOOP_GUIDED_NEXT GOMP_loop_guided_next
541 #define KMP_API_NAME_GOMP_LOOP_GUIDED_START GOMP_loop_guided_start
542 #define KMP_API_NAME_GOMP_LOOP_ORDERED_DYNAMIC_NEXT                            \
543   GOMP_loop_ordered_dynamic_next
544 #define KMP_API_NAME_GOMP_LOOP_ORDERED_DYNAMIC_START                           \
545   GOMP_loop_ordered_dynamic_start
546 #define KMP_API_NAME_GOMP_LOOP_ORDERED_GUIDED_NEXT GOMP_loop_ordered_guided_next
547 #define KMP_API_NAME_GOMP_LOOP_ORDERED_GUIDED_START                            \
548   GOMP_loop_ordered_guided_start
549 #define KMP_API_NAME_GOMP_LOOP_ORDERED_RUNTIME_NEXT                            \
550   GOMP_loop_ordered_runtime_next
551 #define KMP_API_NAME_GOMP_LOOP_ORDERED_RUNTIME_START                           \
552   GOMP_loop_ordered_runtime_start
553 #define KMP_API_NAME_GOMP_LOOP_ORDERED_STATIC_NEXT GOMP_loop_ordered_static_next
554 #define KMP_API_NAME_GOMP_LOOP_ORDERED_STATIC_START                            \
555   GOMP_loop_ordered_static_start
556 #define KMP_API_NAME_GOMP_LOOP_RUNTIME_NEXT GOMP_loop_runtime_next
557 #define KMP_API_NAME_GOMP_LOOP_RUNTIME_START GOMP_loop_runtime_start
558 #define KMP_API_NAME_GOMP_LOOP_STATIC_NEXT GOMP_loop_static_next
559 #define KMP_API_NAME_GOMP_LOOP_STATIC_START GOMP_loop_static_start
560 #define KMP_API_NAME_GOMP_ORDERED_END GOMP_ordered_end
561 #define KMP_API_NAME_GOMP_ORDERED_START GOMP_ordered_start
562 #define KMP_API_NAME_GOMP_PARALLEL_END GOMP_parallel_end
563 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_DYNAMIC_START                          \
564   GOMP_parallel_loop_dynamic_start
565 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_GUIDED_START                           \
566   GOMP_parallel_loop_guided_start
567 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME_START                          \
568   GOMP_parallel_loop_runtime_start
569 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC_START                           \
570   GOMP_parallel_loop_static_start
571 #define KMP_API_NAME_GOMP_PARALLEL_SECTIONS_START GOMP_parallel_sections_start
572 #define KMP_API_NAME_GOMP_PARALLEL_START GOMP_parallel_start
573 #define KMP_API_NAME_GOMP_SECTIONS_END GOMP_sections_end
574 #define KMP_API_NAME_GOMP_SECTIONS_END_NOWAIT GOMP_sections_end_nowait
575 #define KMP_API_NAME_GOMP_SECTIONS_NEXT GOMP_sections_next
576 #define KMP_API_NAME_GOMP_SECTIONS_START GOMP_sections_start
577 #define KMP_API_NAME_GOMP_SINGLE_COPY_END GOMP_single_copy_end
578 #define KMP_API_NAME_GOMP_SINGLE_COPY_START GOMP_single_copy_start
579 #define KMP_API_NAME_GOMP_SINGLE_START GOMP_single_start
580 
581 // All GOMP_2.0 symbols
582 #define KMP_API_NAME_GOMP_TASK GOMP_task
583 #define KMP_API_NAME_GOMP_TASKWAIT GOMP_taskwait
584 #define KMP_API_NAME_GOMP_LOOP_ULL_DYNAMIC_NEXT GOMP_loop_ull_dynamic_next
585 #define KMP_API_NAME_GOMP_LOOP_ULL_DYNAMIC_START GOMP_loop_ull_dynamic_start
586 #define KMP_API_NAME_GOMP_LOOP_ULL_GUIDED_NEXT GOMP_loop_ull_guided_next
587 #define KMP_API_NAME_GOMP_LOOP_ULL_GUIDED_START GOMP_loop_ull_guided_start
588 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT                        \
589   GOMP_loop_ull_ordered_dynamic_next
590 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START                       \
591   GOMP_loop_ull_ordered_dynamic_start
592 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT                         \
593   GOMP_loop_ull_ordered_guided_next
594 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_GUIDED_START                        \
595   GOMP_loop_ull_ordered_guided_start
596 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT                        \
597   GOMP_loop_ull_ordered_runtime_next
598 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_RUNTIME_START                       \
599   GOMP_loop_ull_ordered_runtime_start
600 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT                         \
601   GOMP_loop_ull_ordered_static_next
602 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_STATIC_START                        \
603   GOMP_loop_ull_ordered_static_start
604 #define KMP_API_NAME_GOMP_LOOP_ULL_RUNTIME_NEXT GOMP_loop_ull_runtime_next
605 #define KMP_API_NAME_GOMP_LOOP_ULL_RUNTIME_START GOMP_loop_ull_runtime_start
606 #define KMP_API_NAME_GOMP_LOOP_ULL_STATIC_NEXT GOMP_loop_ull_static_next
607 #define KMP_API_NAME_GOMP_LOOP_ULL_STATIC_START GOMP_loop_ull_static_start
608 
609 // All GOMP_3.0 symbols
610 #define KMP_API_NAME_GOMP_TASKYIELD GOMP_taskyield
611 
612 // All GOMP_4.0 symbols
613 #define KMP_API_NAME_GOMP_BARRIER_CANCEL GOMP_barrier_cancel
614 #define KMP_API_NAME_GOMP_CANCEL GOMP_cancel
615 #define KMP_API_NAME_GOMP_CANCELLATION_POINT GOMP_cancellation_point
616 #define KMP_API_NAME_GOMP_LOOP_END_CANCEL GOMP_loop_end_cancel
617 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_DYNAMIC GOMP_parallel_loop_dynamic
618 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_GUIDED GOMP_parallel_loop_guided
619 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME GOMP_parallel_loop_runtime
620 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC GOMP_parallel_loop_static
621 #define KMP_API_NAME_GOMP_PARALLEL_SECTIONS GOMP_parallel_sections
622 #define KMP_API_NAME_GOMP_PARALLEL GOMP_parallel
623 #define KMP_API_NAME_GOMP_SECTIONS_END_CANCEL GOMP_sections_end_cancel
624 #define KMP_API_NAME_GOMP_TASKGROUP_START GOMP_taskgroup_start
625 #define KMP_API_NAME_GOMP_TASKGROUP_END GOMP_taskgroup_end
626 /* Target functions should be taken care of by liboffload */
627 #define KMP_API_NAME_GOMP_TARGET GOMP_target
628 #define KMP_API_NAME_GOMP_TARGET_DATA GOMP_target_data
629 #define KMP_API_NAME_GOMP_TARGET_END_DATA GOMP_target_end_data
630 #define KMP_API_NAME_GOMP_TARGET_UPDATE GOMP_target_update
631 #define KMP_API_NAME_GOMP_TEAMS GOMP_teams
632 
633 // All GOMP_4.5 symbols
634 #define KMP_API_NAME_GOMP_TASKLOOP GOMP_taskloop
635 #define KMP_API_NAME_GOMP_TASKLOOP_ULL GOMP_taskloop_ull
636 #define KMP_API_NAME_GOMP_DOACROSS_POST GOMP_doacross_post
637 #define KMP_API_NAME_GOMP_DOACROSS_WAIT GOMP_doacross_wait
638 #define KMP_API_NAME_GOMP_LOOP_DOACROSS_STATIC_START                           \
639   GOMP_loop_doacross_static_start
640 #define KMP_API_NAME_GOMP_LOOP_DOACROSS_DYNAMIC_START                          \
641   GOMP_loop_doacross_dynamic_start
642 #define KMP_API_NAME_GOMP_LOOP_DOACROSS_GUIDED_START                           \
643   GOMP_loop_doacross_guided_start
644 #define KMP_API_NAME_GOMP_LOOP_DOACROSS_RUNTIME_START                          \
645   GOMP_loop_doacross_runtime_start
646 #define KMP_API_NAME_GOMP_DOACROSS_ULL_POST GOMP_doacross_ull_post
647 #define KMP_API_NAME_GOMP_DOACROSS_ULL_WAIT GOMP_doacross_ull_wait
648 #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_STATIC_START                       \
649   GOMP_loop_ull_doacross_static_start
650 #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START                      \
651   GOMP_loop_ull_doacross_dynamic_start
652 #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_GUIDED_START                       \
653   GOMP_loop_ull_doacross_guided_start
654 #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START                      \
655   GOMP_loop_ull_doacross_runtime_start
656 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT                       \
657   GOMP_loop_nonmonotonic_dynamic_next
658 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START                      \
659   GOMP_loop_nonmonotonic_dynamic_start
660 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT                        \
661   GOMP_loop_nonmonotonic_guided_next
662 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_GUIDED_START                       \
663   GOMP_loop_nonmonotonic_guided_start
664 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT                   \
665   GOMP_loop_ull_nonmonotonic_dynamic_next
666 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START                  \
667   GOMP_loop_ull_nonmonotonic_dynamic_start
668 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT                    \
669   GOMP_loop_ull_nonmonotonic_guided_next
670 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START                   \
671   GOMP_loop_ull_nonmonotonic_guided_start
672 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC                   \
673   GOMP_parallel_loop_nonmonotonic_dynamic
674 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED                    \
675   GOMP_parallel_loop_nonmonotonic_guided
676 
677 // All GOMP_5.0 symbols
678 #define KMP_API_NAME_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_NEXT                 \
679   GOMP_loop_maybe_nonmonotonic_runtime_next
680 #define KMP_API_NAME_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_START                \
681   GOMP_loop_maybe_nonmonotonic_runtime_start
682 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_RUNTIME_NEXT                       \
683   GOMP_loop_nonmonotonic_runtime_next
684 #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_RUNTIME_START                      \
685   GOMP_loop_nonmonotonic_runtime_start
686 #define KMP_API_NAME_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_NEXT             \
687   GOMP_loop_ull_maybe_nonmonotonic_runtime_next
688 #define KMP_API_NAME_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_START            \
689   GOMP_loop_ull_maybe_nonmonotonic_runtime_start
690 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_NEXT                   \
691   GOMP_loop_ull_nonmonotonic_runtime_next
692 #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_START                  \
693   GOMP_loop_ull_nonmonotonic_runtime_start
694 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_RUNTIME                   \
695   GOMP_parallel_loop_nonmonotonic_runtime
696 #define KMP_API_NAME_GOMP_PARALLEL_LOOP_MAYBE_NONMONOTONIC_RUNTIME             \
697   GOMP_parallel_loop_maybe_nonmonotonic_runtime
698 #define KMP_API_NAME_GOMP_TEAMS_REG GOMP_teams_reg
699 #define KMP_API_NAME_GOMP_TASKWAIT_DEPEND GOMP_taskwait_depend
700 #define KMP_API_NAME_GOMP_TASKGROUP_REDUCTION_REGISTER                         \
701   GOMP_taskgroup_reduction_register
702 #define KMP_API_NAME_GOMP_TASKGROUP_REDUCTION_UNREGISTER                       \
703   GOMP_taskgroup_reduction_unregister
704 #define KMP_API_NAME_GOMP_TASK_REDUCTION_REMAP GOMP_task_reduction_remap
705 #define KMP_API_NAME_GOMP_PARALLEL_REDUCTIONS GOMP_parallel_reductions
706 #define KMP_API_NAME_GOMP_LOOP_START GOMP_loop_start
707 #define KMP_API_NAME_GOMP_LOOP_ULL_START GOMP_loop_ull_start
708 #define KMP_API_NAME_GOMP_LOOP_DOACROSS_START GOMP_loop_doacross_start
709 #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_START GOMP_loop_ull_doacross_start
710 #define KMP_API_NAME_GOMP_LOOP_ORDERED_START GOMP_loop_ordered_start
711 #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_START GOMP_loop_ull_ordered_start
712 #define KMP_API_NAME_GOMP_SECTIONS2_START GOMP_sections2_start
713 #define KMP_API_NAME_GOMP_WORKSHARE_TASK_REDUCTION_UNREGISTER                  \
714   GOMP_workshare_task_reduction_unregister
715 
716 #endif /* KMP_FTN_OS_H */
717