| 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_MEMSET omp_target_memset |
| 120 | #define FTN_TARGET_MEMSET_ASYNC omp_target_memset_async |
| 121 | #define FTN_TARGET_ASSOCIATE_PTR omp_target_associate_ptr |
| 122 | #define FTN_TARGET_DISASSOCIATE_PTR omp_target_disassociate_ptr |
| 123 | #endif |
| 124 | |
| 125 | #define FTN_CONTROL_TOOL omp_control_tool |
| 126 | #define FTN_INIT_ALLOCATOR omp_init_allocator |
| 127 | #define FTN_DESTROY_ALLOCATOR omp_destroy_allocator |
| 128 | #define FTN_SET_DEFAULT_ALLOCATOR omp_set_default_allocator |
| 129 | #define FTN_GET_DEFAULT_ALLOCATOR omp_get_default_allocator |
| 130 | #define FTN_GET_DEVICES_MEMSPACE omp_get_devices_memspace |
| 131 | #define FTN_GET_DEVICE_MEMSPACE omp_get_device_memspace |
| 132 | #define FTN_GET_DEVICES_AND_HOST_MEMSPACE omp_get_devices_and_host_memspace |
| 133 | #define FTN_GET_DEVICE_AND_HOST_MEMSPACE omp_get_device_and_host_memspace |
| 134 | #define FTN_GET_DEVICES_ALL_MEMSPACE omp_get_devices_all_memspace |
| 135 | #define FTN_GET_DEVICES_ALLOCATOR omp_get_devices_allocator |
| 136 | #define FTN_GET_DEVICE_ALLOCATOR omp_get_device_allocator |
| 137 | #define FTN_GET_DEVICES_AND_HOST_ALLOCATOR omp_get_devices_and_host_allocator |
| 138 | #define FTN_GET_DEVICE_AND_HOST_ALLOCATOR omp_get_device_and_host_allocator |
| 139 | #define FTN_GET_DEVICES_ALL_ALLOCATOR omp_get_devices_all_allocator |
| 140 | #define FTN_GET_MEMSPACE_NUM_RESOURCES omp_get_memspace_num_resources |
| 141 | #define FTN_GET_SUBMEMSPACE omp_get_submemspace |
| 142 | #define FTN_GET_DEVICE_NUM omp_get_device_num |
| 143 | #define FTN_SET_AFFINITY_FORMAT omp_set_affinity_format |
| 144 | #define FTN_GET_AFFINITY_FORMAT omp_get_affinity_format |
| 145 | #define FTN_DISPLAY_AFFINITY omp_display_affinity |
| 146 | #define FTN_CAPTURE_AFFINITY omp_capture_affinity |
| 147 | #define FTN_PAUSE_RESOURCE omp_pause_resource |
| 148 | #define FTN_PAUSE_RESOURCE_ALL omp_pause_resource_all |
| 149 | #define FTN_GET_SUPPORTED_ACTIVE_LEVELS omp_get_supported_active_levels |
| 150 | #define FTN_DISPLAY_ENV omp_display_env |
| 151 | #define FTN_IN_EXPLICIT_TASK omp_in_explicit_task |
| 152 | #define FTN_FULFILL_EVENT omp_fulfill_event |
| 153 | #define FTN_SET_NUM_TEAMS omp_set_num_teams |
| 154 | #define FTN_GET_MAX_TEAMS omp_get_max_teams |
| 155 | #define FTN_SET_TEAMS_THREAD_LIMIT omp_set_teams_thread_limit |
| 156 | #define FTN_GET_TEAMS_THREAD_LIMIT omp_get_teams_thread_limit |
| 157 | |
| 158 | #define FTN_GET_NUM_INTEROP_PROPERTIES omp_get_num_interop_properties |
| 159 | #define FTN_GET_INTEROP_INT omp_get_interop_int |
| 160 | #define FTN_GET_INTEROP_PTR omp_get_interop_ptr |
| 161 | #define FTN_GET_INTEROP_STR omp_get_interop_str |
| 162 | #define FTN_GET_INTEROP_NAME omp_get_interop_name |
| 163 | #define FTN_GET_INTEROP_TYPE_DESC omp_get_interop_type_desc |
| 164 | #define FTN_GET_INTEROP_RC_DESC omp_get_interop_rc_desc |
| 165 | |
| 166 | #endif /* KMP_FTN_PLAIN */ |
| 167 | |
| 168 | /* ------------------------------------------------------------------------ */ |
| 169 | |
| 170 | #if KMP_FTN_ENTRIES == KMP_FTN_APPEND |
| 171 | |
| 172 | #define FTN_SET_STACKSIZE kmp_set_stacksize_ |
| 173 | #define FTN_SET_STACKSIZE_S kmp_set_stacksize_s_ |
| 174 | #define FTN_GET_STACKSIZE kmp_get_stacksize_ |
| 175 | #define FTN_GET_STACKSIZE_S kmp_get_stacksize_s_ |
| 176 | #define FTN_SET_BLOCKTIME kmp_set_blocktime_ |
| 177 | #define FTN_GET_BLOCKTIME kmp_get_blocktime_ |
| 178 | #define FTN_SET_LIBRARY_SERIAL kmp_set_library_serial_ |
| 179 | #define FTN_SET_LIBRARY_TURNAROUND kmp_set_library_turnaround_ |
| 180 | #define FTN_SET_LIBRARY_THROUGHPUT kmp_set_library_throughput_ |
| 181 | #define FTN_SET_LIBRARY kmp_set_library_ |
| 182 | #define FTN_GET_LIBRARY kmp_get_library_ |
| 183 | #define FTN_SET_DEFAULTS kmp_set_defaults_ |
| 184 | #define FTN_SET_DISP_NUM_BUFFERS kmp_set_disp_num_buffers_ |
| 185 | #define FTN_SET_AFFINITY kmp_set_affinity_ |
| 186 | #define FTN_GET_AFFINITY kmp_get_affinity_ |
| 187 | #define FTN_GET_AFFINITY_MAX_PROC kmp_get_affinity_max_proc_ |
| 188 | #define FTN_CREATE_AFFINITY_MASK kmp_create_affinity_mask_ |
| 189 | #define FTN_DESTROY_AFFINITY_MASK kmp_destroy_affinity_mask_ |
| 190 | #define FTN_SET_AFFINITY_MASK_PROC kmp_set_affinity_mask_proc_ |
| 191 | #define FTN_UNSET_AFFINITY_MASK_PROC kmp_unset_affinity_mask_proc_ |
| 192 | #define FTN_GET_AFFINITY_MASK_PROC kmp_get_affinity_mask_proc_ |
| 193 | |
| 194 | #define FTN_MALLOC kmp_malloc_ |
| 195 | #define FTN_ALIGNED_MALLOC kmp_aligned_malloc_ |
| 196 | #define FTN_CALLOC kmp_calloc_ |
| 197 | #define FTN_REALLOC kmp_realloc_ |
| 198 | #define FTN_KFREE kmp_free_ |
| 199 | |
| 200 | #define FTN_GET_NUM_KNOWN_THREADS kmp_get_num_known_threads_ |
| 201 | |
| 202 | #define FTN_SET_NUM_THREADS omp_set_num_threads_ |
| 203 | #define FTN_GET_NUM_THREADS omp_get_num_threads_ |
| 204 | #define FTN_GET_MAX_THREADS omp_get_max_threads_ |
| 205 | #define FTN_GET_THREAD_NUM omp_get_thread_num_ |
| 206 | #define FTN_GET_NUM_PROCS omp_get_num_procs_ |
| 207 | #define FTN_SET_DYNAMIC omp_set_dynamic_ |
| 208 | #define FTN_GET_DYNAMIC omp_get_dynamic_ |
| 209 | #define FTN_SET_NESTED omp_set_nested_ |
| 210 | #define FTN_GET_NESTED omp_get_nested_ |
| 211 | #define FTN_IN_PARALLEL omp_in_parallel_ |
| 212 | #define FTN_GET_THREAD_LIMIT omp_get_thread_limit_ |
| 213 | #define FTN_SET_SCHEDULE omp_set_schedule_ |
| 214 | #define FTN_GET_SCHEDULE omp_get_schedule_ |
| 215 | #define FTN_SET_MAX_ACTIVE_LEVELS omp_set_max_active_levels_ |
| 216 | #define FTN_GET_MAX_ACTIVE_LEVELS omp_get_max_active_levels_ |
| 217 | #define FTN_GET_ACTIVE_LEVEL omp_get_active_level_ |
| 218 | #define FTN_GET_LEVEL omp_get_level_ |
| 219 | #define FTN_GET_ANCESTOR_THREAD_NUM omp_get_ancestor_thread_num_ |
| 220 | #define FTN_GET_TEAM_SIZE omp_get_team_size_ |
| 221 | #define FTN_IN_FINAL omp_in_final_ |
| 222 | #define FTN_GET_PROC_BIND omp_get_proc_bind_ |
| 223 | #define FTN_GET_NUM_TEAMS omp_get_num_teams_ |
| 224 | #define FTN_GET_TEAM_NUM omp_get_team_num_ |
| 225 | #define FTN_INIT_LOCK omp_init_lock_ |
| 226 | #if KMP_USE_DYNAMIC_LOCK |
| 227 | #define FTN_INIT_LOCK_WITH_HINT omp_init_lock_with_hint_ |
| 228 | #define FTN_INIT_NEST_LOCK_WITH_HINT omp_init_nest_lock_with_hint_ |
| 229 | #endif |
| 230 | #define FTN_DESTROY_LOCK omp_destroy_lock_ |
| 231 | #define FTN_SET_LOCK omp_set_lock_ |
| 232 | #define FTN_UNSET_LOCK omp_unset_lock_ |
| 233 | #define FTN_TEST_LOCK omp_test_lock_ |
| 234 | #define FTN_INIT_NEST_LOCK omp_init_nest_lock_ |
| 235 | #define FTN_DESTROY_NEST_LOCK omp_destroy_nest_lock_ |
| 236 | #define FTN_SET_NEST_LOCK omp_set_nest_lock_ |
| 237 | #define FTN_UNSET_NEST_LOCK omp_unset_nest_lock_ |
| 238 | #define FTN_TEST_NEST_LOCK omp_test_nest_lock_ |
| 239 | |
| 240 | #define FTN_SET_WARNINGS_ON kmp_set_warnings_on_ |
| 241 | #define FTN_SET_WARNINGS_OFF kmp_set_warnings_off_ |
| 242 | |
| 243 | #define FTN_GET_WTIME omp_get_wtime_ |
| 244 | #define FTN_GET_WTICK omp_get_wtick_ |
| 245 | |
| 246 | #define FTN_GET_NUM_DEVICES omp_get_num_devices_ |
| 247 | #define FTN_GET_DEFAULT_DEVICE omp_get_default_device_ |
| 248 | #define FTN_SET_DEFAULT_DEVICE omp_set_default_device_ |
| 249 | #define FTN_IS_INITIAL_DEVICE omp_is_initial_device_ |
| 250 | |
| 251 | #define FTN_GET_CANCELLATION omp_get_cancellation_ |
| 252 | #define FTN_GET_CANCELLATION_STATUS kmp_get_cancellation_status_ |
| 253 | |
| 254 | #define FTN_GET_MAX_TASK_PRIORITY omp_get_max_task_priority_ |
| 255 | #define FTN_GET_NUM_PLACES omp_get_num_places_ |
| 256 | #define FTN_GET_PLACE_NUM_PROCS omp_get_place_num_procs_ |
| 257 | #define FTN_GET_PLACE_PROC_IDS omp_get_place_proc_ids_ |
| 258 | #define FTN_GET_PLACE_NUM omp_get_place_num_ |
| 259 | #define FTN_GET_PARTITION_NUM_PLACES omp_get_partition_num_places_ |
| 260 | #define FTN_GET_PARTITION_PLACE_NUMS omp_get_partition_place_nums_ |
| 261 | #define FTN_GET_INITIAL_DEVICE omp_get_initial_device_ |
| 262 | #ifdef KMP_STUB |
| 263 | #define FTN_TARGET_ALLOC omp_target_alloc_ |
| 264 | #define FTN_TARGET_FREE omp_target_free_ |
| 265 | #define FTN_TARGET_IS_PRESENT omp_target_is_present_ |
| 266 | #define FTN_TARGET_MEMCPY omp_target_memcpy_ |
| 267 | #define FTN_TARGET_MEMCPY_RECT omp_target_memcpy_rect_ |
| 268 | #define FTN_TARGET_ASSOCIATE_PTR omp_target_associate_ptr_ |
| 269 | #define FTN_TARGET_DISASSOCIATE_PTR omp_target_disassociate_ptr_ |
| 270 | #endif |
| 271 | |
| 272 | #define FTN_CONTROL_TOOL omp_control_tool_ |
| 273 | #define FTN_INIT_ALLOCATOR omp_init_allocator_ |
| 274 | #define FTN_DESTROY_ALLOCATOR omp_destroy_allocator_ |
| 275 | #define FTN_SET_DEFAULT_ALLOCATOR omp_set_default_allocator_ |
| 276 | #define FTN_GET_DEFAULT_ALLOCATOR omp_get_default_allocator_ |
| 277 | #define FTN_GET_DEVICES_MEMSPACE omp_get_devices_memspace_ |
| 278 | #define FTN_GET_DEVICE_MEMSPACE omp_get_device_memspace_ |
| 279 | #define FTN_GET_DEVICES_AND_HOST_MEMSPACE omp_get_devices_and_host_memspace_ |
| 280 | #define FTN_GET_DEVICE_AND_HOST_MEMSPACE omp_get_device_and_host_memspace_ |
| 281 | #define FTN_GET_DEVICES_ALL_MEMSPACE omp_get_devices_all_memspace_ |
| 282 | #define FTN_GET_DEVICES_ALLOCATOR omp_get_devices_allocator_ |
| 283 | #define FTN_GET_DEVICE_ALLOCATOR omp_get_device_allocator_ |
| 284 | #define FTN_GET_DEVICES_AND_HOST_ALLOCATOR omp_get_devices_and_host_allocator_ |
| 285 | #define FTN_GET_DEVICE_AND_HOST_ALLOCATOR omp_get_device_and_host_allocator_ |
| 286 | #define FTN_GET_DEVICES_ALL_ALLOCATOR omp_get_devices_all_allocator_ |
| 287 | #define FTN_GET_MEMSPACE_NUM_RESOURCES omp_get_memspace_num_resources_ |
| 288 | #define FTN_GET_SUBMEMSPACE omp_get_submemspace_ |
| 289 | #define FTN_ALLOC omp_alloc_ |
| 290 | #define FTN_FREE omp_free_ |
| 291 | #define FTN_GET_DEVICE_NUM omp_get_device_num_ |
| 292 | #define FTN_SET_AFFINITY_FORMAT omp_set_affinity_format_ |
| 293 | #define FTN_GET_AFFINITY_FORMAT omp_get_affinity_format_ |
| 294 | #define FTN_DISPLAY_AFFINITY omp_display_affinity_ |
| 295 | #define FTN_CAPTURE_AFFINITY omp_capture_affinity_ |
| 296 | #define FTN_PAUSE_RESOURCE omp_pause_resource_ |
| 297 | #define FTN_PAUSE_RESOURCE_ALL omp_pause_resource_all_ |
| 298 | #define FTN_GET_SUPPORTED_ACTIVE_LEVELS omp_get_supported_active_levels_ |
| 299 | #define FTN_DISPLAY_ENV omp_display_env_ |
| 300 | #define FTN_IN_EXPLICIT_TASK omp_in_explicit_task_ |
| 301 | #define FTN_FULFILL_EVENT omp_fulfill_event_ |
| 302 | #define FTN_SET_NUM_TEAMS omp_set_num_teams_ |
| 303 | #define FTN_GET_MAX_TEAMS omp_get_max_teams_ |
| 304 | #define FTN_SET_TEAMS_THREAD_LIMIT omp_set_teams_thread_limit_ |
| 305 | #define FTN_GET_TEAMS_THREAD_LIMIT omp_get_teams_thread_limit_ |
| 306 | |
| 307 | #define FTN_GET_NUM_INTEROP_PROPERTIES omp_get_num_interop_properties_ |
| 308 | #define FTN_GET_INTEROP_INT omp_get_interop_int_ |
| 309 | #define FTN_GET_INTEROP_PTR omp_get_interop_ptr_ |
| 310 | #define FTN_GET_INTEROP_STR omp_get_interop_str_ |
| 311 | #define FTN_GET_INTEROP_NAME omp_get_interop_name_ |
| 312 | #define FTN_GET_INTEROP_TYPE_DESC omp_get_interop_type_desc_ |
| 313 | #define FTN_GET_INTEROP_RC_DESC omp_get_interop_rc_desc_ |
| 314 | |
| 315 | #endif /* KMP_FTN_APPEND */ |
| 316 | |
| 317 | /* ------------------------------------------------------------------------ */ |
| 318 | |
| 319 | #if KMP_FTN_ENTRIES == KMP_FTN_UPPER |
| 320 | |
| 321 | #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE |
| 322 | #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S |
| 323 | #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE |
| 324 | #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S |
| 325 | #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME |
| 326 | #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME |
| 327 | #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL |
| 328 | #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND |
| 329 | #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT |
| 330 | #define FTN_SET_LIBRARY KMP_SET_LIBRARY |
| 331 | #define FTN_GET_LIBRARY KMP_GET_LIBRARY |
| 332 | #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS |
| 333 | #define FTN_SET_DISP_NUM_BUFFERS KMP_SET_DISP_NUM_BUFFERS |
| 334 | #define FTN_SET_AFFINITY KMP_SET_AFFINITY |
| 335 | #define FTN_GET_AFFINITY KMP_GET_AFFINITY |
| 336 | #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC |
| 337 | #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK |
| 338 | #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK |
| 339 | #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC |
| 340 | #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC |
| 341 | #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC |
| 342 | |
| 343 | #define FTN_MALLOC KMP_MALLOC |
| 344 | #define FTN_ALIGNED_MALLOC KMP_ALIGNED_MALLOC |
| 345 | #define FTN_CALLOC KMP_CALLOC |
| 346 | #define FTN_REALLOC KMP_REALLOC |
| 347 | #define FTN_KFREE KMP_FREE |
| 348 | |
| 349 | #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS |
| 350 | |
| 351 | #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS |
| 352 | #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS |
| 353 | #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS |
| 354 | #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM |
| 355 | #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS |
| 356 | #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC |
| 357 | #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC |
| 358 | #define FTN_SET_NESTED OMP_SET_NESTED |
| 359 | #define FTN_GET_NESTED OMP_GET_NESTED |
| 360 | #define FTN_IN_PARALLEL OMP_IN_PARALLEL |
| 361 | #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT |
| 362 | #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE |
| 363 | #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE |
| 364 | #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS |
| 365 | #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS |
| 366 | #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL |
| 367 | #define FTN_GET_LEVEL OMP_GET_LEVEL |
| 368 | #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM |
| 369 | #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE |
| 370 | #define FTN_IN_FINAL OMP_IN_FINAL |
| 371 | #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND |
| 372 | #define FTN_GET_NUM_TEAMS OMP_GET_NUM_TEAMS |
| 373 | #define FTN_GET_TEAM_NUM OMP_GET_TEAM_NUM |
| 374 | #define FTN_INIT_LOCK OMP_INIT_LOCK |
| 375 | #if KMP_USE_DYNAMIC_LOCK |
| 376 | #define FTN_INIT_LOCK_WITH_HINT OMP_INIT_LOCK_WITH_HINT |
| 377 | #define FTN_INIT_NEST_LOCK_WITH_HINT OMP_INIT_NEST_LOCK_WITH_HINT |
| 378 | #endif |
| 379 | #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK |
| 380 | #define FTN_SET_LOCK OMP_SET_LOCK |
| 381 | #define FTN_UNSET_LOCK OMP_UNSET_LOCK |
| 382 | #define FTN_TEST_LOCK OMP_TEST_LOCK |
| 383 | #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK |
| 384 | #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK |
| 385 | #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK |
| 386 | #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK |
| 387 | #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK |
| 388 | |
| 389 | #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON |
| 390 | #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF |
| 391 | |
| 392 | #define FTN_GET_WTIME OMP_GET_WTIME |
| 393 | #define FTN_GET_WTICK OMP_GET_WTICK |
| 394 | |
| 395 | #define FTN_GET_NUM_DEVICES OMP_GET_NUM_DEVICES |
| 396 | #define FTN_GET_DEFAULT_DEVICE OMP_GET_DEFAULT_DEVICE |
| 397 | #define FTN_SET_DEFAULT_DEVICE OMP_SET_DEFAULT_DEVICE |
| 398 | #define FTN_IS_INITIAL_DEVICE OMP_IS_INITIAL_DEVICE |
| 399 | |
| 400 | #define FTN_GET_CANCELLATION OMP_GET_CANCELLATION |
| 401 | #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS |
| 402 | |
| 403 | #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY |
| 404 | #define FTN_GET_NUM_PLACES OMP_GET_NUM_PLACES |
| 405 | #define FTN_GET_PLACE_NUM_PROCS OMP_GET_PLACE_NUM_PROCS |
| 406 | #define FTN_GET_PLACE_PROC_IDS OMP_GET_PLACE_PROC_IDS |
| 407 | #define FTN_GET_PLACE_NUM OMP_GET_PLACE_NUM |
| 408 | #define FTN_GET_PARTITION_NUM_PLACES OMP_GET_PARTITION_NUM_PLACES |
| 409 | #define FTN_GET_PARTITION_PLACE_NUMS OMP_GET_PARTITION_PLACE_NUMS |
| 410 | #define FTN_GET_INITIAL_DEVICE OMP_GET_INITIAL_DEVICE |
| 411 | #ifdef KMP_STUB |
| 412 | #define FTN_TARGET_ALLOC OMP_TARGET_ALLOC |
| 413 | #define FTN_TARGET_FREE OMP_TARGET_FREE |
| 414 | #define FTN_TARGET_IS_PRESENT OMP_TARGET_IS_PRESENT |
| 415 | #define FTN_TARGET_MEMCPY OMP_TARGET_MEMCPY |
| 416 | #define FTN_TARGET_MEMCPY_RECT OMP_TARGET_MEMCPY_RECT |
| 417 | #define FTN_TARGET_ASSOCIATE_PTR OMP_TARGET_ASSOCIATE_PTR |
| 418 | #define FTN_TARGET_DISASSOCIATE_PTR OMP_TARGET_DISASSOCIATE_PTR |
| 419 | #endif |
| 420 | |
| 421 | #define FTN_CONTROL_TOOL OMP_CONTROL_TOOL |
| 422 | #define FTN_INIT_ALLOCATOR OMP_INIT_ALLOCATOR |
| 423 | #define FTN_DESTROY_ALLOCATOR OMP_DESTROY_ALLOCATOR |
| 424 | #define FTN_SET_DEFAULT_ALLOCATOR OMP_SET_DEFAULT_ALLOCATOR |
| 425 | #define FTN_GET_DEFAULT_ALLOCATOR OMP_GET_DEFAULT_ALLOCATOR |
| 426 | #define FTN_GET_DEVICES_MEMSPACE OMP_GET_DEVICES_MEMSPACE |
| 427 | #define FTN_GET_DEVICE_MEMSPACE OMP_GET_DEVICE_MEMSPACE |
| 428 | #define FTN_GET_DEVICES_AND_HOST_MEMSPACE OMP_GET_DEVICES_AND_HOST_MEMSPACE |
| 429 | #define FTN_GET_DEVICE_AND_HOST_MEMSPACE OMP_GET_DEVICE_AND_HOST_MEMSPACE |
| 430 | #define FTN_GET_DEVICES_ALL_MEMSPACE OMP_GET_DEVICES_ALL_MEMSPACE |
| 431 | #define FTN_GET_DEVICES_ALLOCATOR OMP_GET_DEVICES_ALLOCATOR |
| 432 | #define FTN_GET_DEVICE_ALLOCATOR OMP_GET_DEVICE_ALLOCATOR |
| 433 | #define FTN_GET_DEVICES_AND_HOST_ALLOCATOR OMP_GET_DEVICES_AND_HOST_ALLOCATOR |
| 434 | #define FTN_GET_DEVICE_AND_HOST_ALLOCATOR OMP_GET_DEVICE_AND_HOST_ALLOCATOR |
| 435 | #define FTN_GET_DEVICES_ALL_ALLOCATOR OMP_GET_DEVICES_ALL_ALLOCATOR |
| 436 | #define FTN_GET_MEMSPACE_NUM_RESOURCES OMP_GET_MEMSPACE_NUM_RESOURCES |
| 437 | #define FTN_GET_SUBMEMSPACE OMP_GET_SUBMEMSPACE |
| 438 | #define FTN_GET_DEVICE_NUM OMP_GET_DEVICE_NUM |
| 439 | #define FTN_SET_AFFINITY_FORMAT OMP_SET_AFFINITY_FORMAT |
| 440 | #define FTN_GET_AFFINITY_FORMAT OMP_GET_AFFINITY_FORMAT |
| 441 | #define FTN_DISPLAY_AFFINITY OMP_DISPLAY_AFFINITY |
| 442 | #define FTN_CAPTURE_AFFINITY OMP_CAPTURE_AFFINITY |
| 443 | #define FTN_PAUSE_RESOURCE OMP_PAUSE_RESOURCE |
| 444 | #define FTN_PAUSE_RESOURCE_ALL OMP_PAUSE_RESOURCE_ALL |
| 445 | #define FTN_GET_SUPPORTED_ACTIVE_LEVELS OMP_GET_SUPPORTED_ACTIVE_LEVELS |
| 446 | #define FTN_DISPLAY_ENV OMP_DISPLAY_ENV |
| 447 | #define FTN_IN_EXPLICIT_TASK OMP_IN_EXPLICIT_TASK |
| 448 | #define FTN_FULFILL_EVENT OMP_FULFILL_EVENT |
| 449 | #define FTN_SET_NUM_TEAMS OMP_SET_NUM_TEAMS |
| 450 | #define FTN_GET_MAX_TEAMS OMP_GET_MAX_TEAMS |
| 451 | #define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT |
| 452 | #define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT |
| 453 | |
| 454 | #define FTN_GET_NUM_INTEROP_PROPERTIES OMP_GET_NUM_INTEROP_PROPERTIES |
| 455 | #define FTN_GET_INTEROP_INT OMP_GET_INTEROP_INT |
| 456 | #define FTN_GET_INTEROP_PTR OMP_GET_INTEROP_PTR |
| 457 | #define FTN_GET_INTEROP_STR OMP_GET_INTEROP_STR |
| 458 | #define FTN_GET_INTEROP_NAME OMP_GET_INTEROP_NAME |
| 459 | #define FTN_GET_INTEROP_TYPE_DESC OMP_GET_INTEROP_TYPE_DESC |
| 460 | #define FTN_GET_INTEROP_RC_DESC OMP_GET_INTEROP_RC_DESC |
| 461 | |
| 462 | #endif /* KMP_FTN_UPPER */ |
| 463 | |
| 464 | /* ------------------------------------------------------------------------ */ |
| 465 | |
| 466 | #if KMP_FTN_ENTRIES == KMP_FTN_UAPPEND |
| 467 | |
| 468 | #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE_ |
| 469 | #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S_ |
| 470 | #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE_ |
| 471 | #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S_ |
| 472 | #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME_ |
| 473 | #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME_ |
| 474 | #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL_ |
| 475 | #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND_ |
| 476 | #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT_ |
| 477 | #define FTN_SET_LIBRARY KMP_SET_LIBRARY_ |
| 478 | #define FTN_GET_LIBRARY KMP_GET_LIBRARY_ |
| 479 | #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS_ |
| 480 | #define FTN_SET_DISP_NUM_BUFFERS KMP_SET_DISP_NUM_BUFFERS_ |
| 481 | #define FTN_SET_AFFINITY KMP_SET_AFFINITY_ |
| 482 | #define FTN_GET_AFFINITY KMP_GET_AFFINITY_ |
| 483 | #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC_ |
| 484 | #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK_ |
| 485 | #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK_ |
| 486 | #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC_ |
| 487 | #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC_ |
| 488 | #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC_ |
| 489 | |
| 490 | #define FTN_MALLOC KMP_MALLOC_ |
| 491 | #define FTN_ALIGNED_MALLOC KMP_ALIGNED_MALLOC_ |
| 492 | #define FTN_CALLOC KMP_CALLOC_ |
| 493 | #define FTN_REALLOC KMP_REALLOC_ |
| 494 | #define FTN_KFREE KMP_FREE_ |
| 495 | |
| 496 | #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS_ |
| 497 | |
| 498 | #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS_ |
| 499 | #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS_ |
| 500 | #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS_ |
| 501 | #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM_ |
| 502 | #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS_ |
| 503 | #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC_ |
| 504 | #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC_ |
| 505 | #define FTN_SET_NESTED OMP_SET_NESTED_ |
| 506 | #define FTN_GET_NESTED OMP_GET_NESTED_ |
| 507 | #define FTN_IN_PARALLEL OMP_IN_PARALLEL_ |
| 508 | #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT_ |
| 509 | #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE_ |
| 510 | #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE_ |
| 511 | #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS_ |
| 512 | #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS_ |
| 513 | #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL_ |
| 514 | #define FTN_GET_LEVEL OMP_GET_LEVEL_ |
| 515 | #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM_ |
| 516 | #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE_ |
| 517 | #define FTN_IN_FINAL OMP_IN_FINAL_ |
| 518 | #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND_ |
| 519 | #define FTN_GET_NUM_TEAMS OMP_GET_NUM_TEAMS_ |
| 520 | #define FTN_GET_TEAM_NUM OMP_GET_TEAM_NUM_ |
| 521 | #define FTN_INIT_LOCK OMP_INIT_LOCK_ |
| 522 | #if KMP_USE_DYNAMIC_LOCK |
| 523 | #define FTN_INIT_LOCK_WITH_HINT OMP_INIT_LOCK_WITH_HINT_ |
| 524 | #define FTN_INIT_NEST_LOCK_WITH_HINT OMP_INIT_NEST_LOCK_WITH_HINT_ |
| 525 | #endif |
| 526 | #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK_ |
| 527 | #define FTN_SET_LOCK OMP_SET_LOCK_ |
| 528 | #define FTN_UNSET_LOCK OMP_UNSET_LOCK_ |
| 529 | #define FTN_TEST_LOCK OMP_TEST_LOCK_ |
| 530 | #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK_ |
| 531 | #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK_ |
| 532 | #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK_ |
| 533 | #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK_ |
| 534 | #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK_ |
| 535 | |
| 536 | #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON_ |
| 537 | #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF_ |
| 538 | |
| 539 | #define FTN_GET_WTIME OMP_GET_WTIME_ |
| 540 | #define FTN_GET_WTICK OMP_GET_WTICK_ |
| 541 | |
| 542 | #define FTN_GET_NUM_DEVICES OMP_GET_NUM_DEVICES_ |
| 543 | #define FTN_GET_DEFAULT_DEVICE OMP_GET_DEFAULT_DEVICE_ |
| 544 | #define FTN_SET_DEFAULT_DEVICE OMP_SET_DEFAULT_DEVICE_ |
| 545 | #define FTN_IS_INITIAL_DEVICE OMP_IS_INITIAL_DEVICE_ |
| 546 | |
| 547 | #define FTN_GET_CANCELLATION OMP_GET_CANCELLATION_ |
| 548 | #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS_ |
| 549 | |
| 550 | #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY_ |
| 551 | #define FTN_GET_NUM_PLACES OMP_GET_NUM_PLACES_ |
| 552 | #define FTN_GET_PLACE_NUM_PROCS OMP_GET_PLACE_NUM_PROCS_ |
| 553 | #define FTN_GET_PLACE_PROC_IDS OMP_GET_PLACE_PROC_IDS_ |
| 554 | #define FTN_GET_PLACE_NUM OMP_GET_PLACE_NUM_ |
| 555 | #define FTN_GET_PARTITION_NUM_PLACES OMP_GET_PARTITION_NUM_PLACES_ |
| 556 | #define FTN_GET_PARTITION_PLACE_NUMS OMP_GET_PARTITION_PLACE_NUMS_ |
| 557 | #define FTN_GET_INITIAL_DEVICE OMP_GET_INITIAL_DEVICE_ |
| 558 | #ifdef KMP_STUB |
| 559 | #define FTN_TARGET_ALLOC OMP_TARGET_ALLOC_ |
| 560 | #define FTN_TARGET_FREE OMP_TARGET_FREE_ |
| 561 | #define FTN_TARGET_IS_PRESENT OMP_TARGET_IS_PRESENT_ |
| 562 | #define FTN_TARGET_MEMCPY OMP_TARGET_MEMCPY_ |
| 563 | #define FTN_TARGET_MEMCPY_RECT OMP_TARGET_MEMCPY_RECT_ |
| 564 | #define FTN_TARGET_ASSOCIATE_PTR OMP_TARGET_ASSOCIATE_PTR_ |
| 565 | #define FTN_TARGET_DISASSOCIATE_PTR OMP_TARGET_DISASSOCIATE_PTR_ |
| 566 | #endif |
| 567 | |
| 568 | #define FTN_CONTROL_TOOL OMP_CONTROL_TOOL_ |
| 569 | #define FTN_INIT_ALLOCATOR OMP_INIT_ALLOCATOR_ |
| 570 | #define FTN_DESTROY_ALLOCATOR OMP_DESTROY_ALLOCATOR_ |
| 571 | #define FTN_SET_DEFAULT_ALLOCATOR OMP_SET_DEFAULT_ALLOCATOR_ |
| 572 | #define FTN_GET_DEFAULT_ALLOCATOR OMP_GET_DEFAULT_ALLOCATOR_ |
| 573 | #define FTN_GET_DEVICES_MEMSPACE OMP_GET_DEVICES_MEMSPACE_ |
| 574 | #define FTN_GET_DEVICE_MEMSPACE OMP_GET_DEVICE_MEMSPACE_ |
| 575 | #define FTN_GET_DEVICES_AND_HOST_MEMSPACE OMP_GET_DEVICES_AND_HOST_MEMSPACE_ |
| 576 | #define FTN_GET_DEVICE_AND_HOST_MEMSPACE OMP_GET_DEVICE_AND_HOST_MEMSPACE_ |
| 577 | #define FTN_GET_DEVICES_ALL_MEMSPACE OMP_GET_DEVICES_ALL_MEMSPACE_ |
| 578 | #define FTN_GET_DEVICES_ALLOCATOR OMP_GET_DEVICES_ALLOCATOR_ |
| 579 | #define FTN_GET_DEVICE_ALLOCATOR OMP_GET_DEVICE_ALLOCATOR_ |
| 580 | #define FTN_GET_DEVICES_AND_HOST_ALLOCATOR OMP_GET_DEVICES_AND_HOST_ALLOCATOR_ |
| 581 | #define FTN_GET_DEVICE_AND_HOST_ALLOCATOR OMP_GET_DEVICE_AND_HOST_ALLOCATOR_ |
| 582 | #define FTN_GET_DEVICES_ALL_ALLOCATOR OMP_GET_DEVICES_ALL_ALLOCATOR_ |
| 583 | #define FTN_GET_MEMSPACE_NUM_RESOURCES OMP_GET_MEMSPACE_NUM_RESOURCES_ |
| 584 | #define FTN_GET_SUBMEMSPACE OMP_GET_SUBMEMSPACE_ |
| 585 | #define FTN_ALLOC OMP_ALLOC_ |
| 586 | #define FTN_FREE OMP_FREE_ |
| 587 | #define FTN_GET_DEVICE_NUM OMP_GET_DEVICE_NUM_ |
| 588 | #define FTN_SET_AFFINITY_FORMAT OMP_SET_AFFINITY_FORMAT_ |
| 589 | #define FTN_GET_AFFINITY_FORMAT OMP_GET_AFFINITY_FORMAT_ |
| 590 | #define FTN_DISPLAY_AFFINITY OMP_DISPLAY_AFFINITY_ |
| 591 | #define FTN_CAPTURE_AFFINITY OMP_CAPTURE_AFFINITY_ |
| 592 | #define FTN_PAUSE_RESOURCE OMP_PAUSE_RESOURCE_ |
| 593 | #define FTN_PAUSE_RESOURCE_ALL OMP_PAUSE_RESOURCE_ALL_ |
| 594 | #define FTN_GET_SUPPORTED_ACTIVE_LEVELS OMP_GET_SUPPORTED_ACTIVE_LEVELS_ |
| 595 | #define FTN_DISPLAY_ENV OMP_DISPLAY_ENV_ |
| 596 | #define FTN_IN_EXPLICIT_TASK OMP_IN_EXPLICIT_TASK_ |
| 597 | #define FTN_FULFILL_EVENT OMP_FULFILL_EVENT_ |
| 598 | #define FTN_SET_NUM_TEAMS OMP_SET_NUM_TEAMS_ |
| 599 | #define FTN_GET_MAX_TEAMS OMP_GET_MAX_TEAMS_ |
| 600 | #define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT_ |
| 601 | #define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT_ |
| 602 | |
| 603 | #define FTN_GET_NUM_INTEROP_PROPERTIES OMP_GET_NUM_INTEROP_PROPERTIES_ |
| 604 | #define FTN_GET_INTEROP_INT OMP_GET_INTEROP_INT_ |
| 605 | #define FTN_GET_INTEROP_PTR OMP_GET_INTEROP_PTR_ |
| 606 | #define FTN_GET_INTEROP_STR OMP_GET_INTEROP_STR_ |
| 607 | #define FTN_GET_INTEROP_NAME OMP_GET_INTEROP_NAME_ |
| 608 | #define FTN_GET_INTEROP_TYPE_DESC OMP_GET_INTEROP_TYPE_DESC_ |
| 609 | #define FTN_GET_INTEROP_RC_DESC OMP_GET_INTEROP_RC_DESC_ |
| 610 | |
| 611 | #endif /* KMP_FTN_UAPPEND */ |
| 612 | |
| 613 | /* -------------------------- GOMP API NAMES ------------------------ */ |
| 614 | // All GOMP_1.0 symbols |
| 615 | #define KMP_API_NAME_GOMP_ATOMIC_END GOMP_atomic_end |
| 616 | #define KMP_API_NAME_GOMP_ATOMIC_START GOMP_atomic_start |
| 617 | #define KMP_API_NAME_GOMP_BARRIER GOMP_barrier |
| 618 | #define KMP_API_NAME_GOMP_CRITICAL_END GOMP_critical_end |
| 619 | #define KMP_API_NAME_GOMP_CRITICAL_NAME_END GOMP_critical_name_end |
| 620 | #define KMP_API_NAME_GOMP_CRITICAL_NAME_START GOMP_critical_name_start |
| 621 | #define KMP_API_NAME_GOMP_CRITICAL_START GOMP_critical_start |
| 622 | #define KMP_API_NAME_GOMP_LOOP_DYNAMIC_NEXT GOMP_loop_dynamic_next |
| 623 | #define KMP_API_NAME_GOMP_LOOP_DYNAMIC_START GOMP_loop_dynamic_start |
| 624 | #define KMP_API_NAME_GOMP_LOOP_END GOMP_loop_end |
| 625 | #define KMP_API_NAME_GOMP_LOOP_END_NOWAIT GOMP_loop_end_nowait |
| 626 | #define KMP_API_NAME_GOMP_LOOP_GUIDED_NEXT GOMP_loop_guided_next |
| 627 | #define KMP_API_NAME_GOMP_LOOP_GUIDED_START GOMP_loop_guided_start |
| 628 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_DYNAMIC_NEXT \ |
| 629 | GOMP_loop_ordered_dynamic_next |
| 630 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_DYNAMIC_START \ |
| 631 | GOMP_loop_ordered_dynamic_start |
| 632 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_GUIDED_NEXT GOMP_loop_ordered_guided_next |
| 633 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_GUIDED_START \ |
| 634 | GOMP_loop_ordered_guided_start |
| 635 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_RUNTIME_NEXT \ |
| 636 | GOMP_loop_ordered_runtime_next |
| 637 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_RUNTIME_START \ |
| 638 | GOMP_loop_ordered_runtime_start |
| 639 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_STATIC_NEXT GOMP_loop_ordered_static_next |
| 640 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_STATIC_START \ |
| 641 | GOMP_loop_ordered_static_start |
| 642 | #define KMP_API_NAME_GOMP_LOOP_RUNTIME_NEXT GOMP_loop_runtime_next |
| 643 | #define KMP_API_NAME_GOMP_LOOP_RUNTIME_START GOMP_loop_runtime_start |
| 644 | #define KMP_API_NAME_GOMP_LOOP_STATIC_NEXT GOMP_loop_static_next |
| 645 | #define KMP_API_NAME_GOMP_LOOP_STATIC_START GOMP_loop_static_start |
| 646 | #define KMP_API_NAME_GOMP_ORDERED_END GOMP_ordered_end |
| 647 | #define KMP_API_NAME_GOMP_ORDERED_START GOMP_ordered_start |
| 648 | #define KMP_API_NAME_GOMP_PARALLEL_END GOMP_parallel_end |
| 649 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_DYNAMIC_START \ |
| 650 | GOMP_parallel_loop_dynamic_start |
| 651 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_GUIDED_START \ |
| 652 | GOMP_parallel_loop_guided_start |
| 653 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME_START \ |
| 654 | GOMP_parallel_loop_runtime_start |
| 655 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC_START \ |
| 656 | GOMP_parallel_loop_static_start |
| 657 | #define KMP_API_NAME_GOMP_PARALLEL_SECTIONS_START GOMP_parallel_sections_start |
| 658 | #define KMP_API_NAME_GOMP_PARALLEL_START GOMP_parallel_start |
| 659 | #define KMP_API_NAME_GOMP_SECTIONS_END GOMP_sections_end |
| 660 | #define KMP_API_NAME_GOMP_SECTIONS_END_NOWAIT GOMP_sections_end_nowait |
| 661 | #define KMP_API_NAME_GOMP_SECTIONS_NEXT GOMP_sections_next |
| 662 | #define KMP_API_NAME_GOMP_SECTIONS_START GOMP_sections_start |
| 663 | #define KMP_API_NAME_GOMP_SINGLE_COPY_END GOMP_single_copy_end |
| 664 | #define KMP_API_NAME_GOMP_SINGLE_COPY_START GOMP_single_copy_start |
| 665 | #define KMP_API_NAME_GOMP_SINGLE_START GOMP_single_start |
| 666 | |
| 667 | // All GOMP_2.0 symbols |
| 668 | #define KMP_API_NAME_GOMP_TASK GOMP_task |
| 669 | #define KMP_API_NAME_GOMP_TASKWAIT GOMP_taskwait |
| 670 | #define KMP_API_NAME_GOMP_LOOP_ULL_DYNAMIC_NEXT GOMP_loop_ull_dynamic_next |
| 671 | #define KMP_API_NAME_GOMP_LOOP_ULL_DYNAMIC_START GOMP_loop_ull_dynamic_start |
| 672 | #define KMP_API_NAME_GOMP_LOOP_ULL_GUIDED_NEXT GOMP_loop_ull_guided_next |
| 673 | #define KMP_API_NAME_GOMP_LOOP_ULL_GUIDED_START GOMP_loop_ull_guided_start |
| 674 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT \ |
| 675 | GOMP_loop_ull_ordered_dynamic_next |
| 676 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START \ |
| 677 | GOMP_loop_ull_ordered_dynamic_start |
| 678 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT \ |
| 679 | GOMP_loop_ull_ordered_guided_next |
| 680 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_GUIDED_START \ |
| 681 | GOMP_loop_ull_ordered_guided_start |
| 682 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT \ |
| 683 | GOMP_loop_ull_ordered_runtime_next |
| 684 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_RUNTIME_START \ |
| 685 | GOMP_loop_ull_ordered_runtime_start |
| 686 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT \ |
| 687 | GOMP_loop_ull_ordered_static_next |
| 688 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_STATIC_START \ |
| 689 | GOMP_loop_ull_ordered_static_start |
| 690 | #define KMP_API_NAME_GOMP_LOOP_ULL_RUNTIME_NEXT GOMP_loop_ull_runtime_next |
| 691 | #define KMP_API_NAME_GOMP_LOOP_ULL_RUNTIME_START GOMP_loop_ull_runtime_start |
| 692 | #define KMP_API_NAME_GOMP_LOOP_ULL_STATIC_NEXT GOMP_loop_ull_static_next |
| 693 | #define KMP_API_NAME_GOMP_LOOP_ULL_STATIC_START GOMP_loop_ull_static_start |
| 694 | |
| 695 | // All GOMP_3.0 symbols |
| 696 | #define KMP_API_NAME_GOMP_TASKYIELD GOMP_taskyield |
| 697 | |
| 698 | // All GOMP_4.0 symbols |
| 699 | #define KMP_API_NAME_GOMP_BARRIER_CANCEL GOMP_barrier_cancel |
| 700 | #define KMP_API_NAME_GOMP_CANCEL GOMP_cancel |
| 701 | #define KMP_API_NAME_GOMP_CANCELLATION_POINT GOMP_cancellation_point |
| 702 | #define KMP_API_NAME_GOMP_LOOP_END_CANCEL GOMP_loop_end_cancel |
| 703 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_DYNAMIC GOMP_parallel_loop_dynamic |
| 704 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_GUIDED GOMP_parallel_loop_guided |
| 705 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME GOMP_parallel_loop_runtime |
| 706 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC GOMP_parallel_loop_static |
| 707 | #define KMP_API_NAME_GOMP_PARALLEL_SECTIONS GOMP_parallel_sections |
| 708 | #define KMP_API_NAME_GOMP_PARALLEL GOMP_parallel |
| 709 | #define KMP_API_NAME_GOMP_SECTIONS_END_CANCEL GOMP_sections_end_cancel |
| 710 | #define KMP_API_NAME_GOMP_TASKGROUP_START GOMP_taskgroup_start |
| 711 | #define KMP_API_NAME_GOMP_TASKGROUP_END GOMP_taskgroup_end |
| 712 | /* Target functions should be taken care of by liboffload */ |
| 713 | #define KMP_API_NAME_GOMP_TARGET GOMP_target |
| 714 | #define KMP_API_NAME_GOMP_TARGET_DATA GOMP_target_data |
| 715 | #define KMP_API_NAME_GOMP_TARGET_END_DATA GOMP_target_end_data |
| 716 | #define KMP_API_NAME_GOMP_TARGET_UPDATE GOMP_target_update |
| 717 | #define KMP_API_NAME_GOMP_TEAMS GOMP_teams |
| 718 | |
| 719 | // All GOMP_4.5 symbols |
| 720 | #define KMP_API_NAME_GOMP_TASKLOOP GOMP_taskloop |
| 721 | #define KMP_API_NAME_GOMP_TASKLOOP_ULL GOMP_taskloop_ull |
| 722 | #define KMP_API_NAME_GOMP_DOACROSS_POST GOMP_doacross_post |
| 723 | #define KMP_API_NAME_GOMP_DOACROSS_WAIT GOMP_doacross_wait |
| 724 | #define KMP_API_NAME_GOMP_LOOP_DOACROSS_STATIC_START \ |
| 725 | GOMP_loop_doacross_static_start |
| 726 | #define KMP_API_NAME_GOMP_LOOP_DOACROSS_DYNAMIC_START \ |
| 727 | GOMP_loop_doacross_dynamic_start |
| 728 | #define KMP_API_NAME_GOMP_LOOP_DOACROSS_GUIDED_START \ |
| 729 | GOMP_loop_doacross_guided_start |
| 730 | #define KMP_API_NAME_GOMP_LOOP_DOACROSS_RUNTIME_START \ |
| 731 | GOMP_loop_doacross_runtime_start |
| 732 | #define KMP_API_NAME_GOMP_DOACROSS_ULL_POST GOMP_doacross_ull_post |
| 733 | #define KMP_API_NAME_GOMP_DOACROSS_ULL_WAIT GOMP_doacross_ull_wait |
| 734 | #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_STATIC_START \ |
| 735 | GOMP_loop_ull_doacross_static_start |
| 736 | #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START \ |
| 737 | GOMP_loop_ull_doacross_dynamic_start |
| 738 | #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_GUIDED_START \ |
| 739 | GOMP_loop_ull_doacross_guided_start |
| 740 | #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START \ |
| 741 | GOMP_loop_ull_doacross_runtime_start |
| 742 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT \ |
| 743 | GOMP_loop_nonmonotonic_dynamic_next |
| 744 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START \ |
| 745 | GOMP_loop_nonmonotonic_dynamic_start |
| 746 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT \ |
| 747 | GOMP_loop_nonmonotonic_guided_next |
| 748 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_GUIDED_START \ |
| 749 | GOMP_loop_nonmonotonic_guided_start |
| 750 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT \ |
| 751 | GOMP_loop_ull_nonmonotonic_dynamic_next |
| 752 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START \ |
| 753 | GOMP_loop_ull_nonmonotonic_dynamic_start |
| 754 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT \ |
| 755 | GOMP_loop_ull_nonmonotonic_guided_next |
| 756 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START \ |
| 757 | GOMP_loop_ull_nonmonotonic_guided_start |
| 758 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC \ |
| 759 | GOMP_parallel_loop_nonmonotonic_dynamic |
| 760 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED \ |
| 761 | GOMP_parallel_loop_nonmonotonic_guided |
| 762 | |
| 763 | // All GOMP_5.0 symbols |
| 764 | #define KMP_API_NAME_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_NEXT \ |
| 765 | GOMP_loop_maybe_nonmonotonic_runtime_next |
| 766 | #define KMP_API_NAME_GOMP_LOOP_MAYBE_NONMONOTONIC_RUNTIME_START \ |
| 767 | GOMP_loop_maybe_nonmonotonic_runtime_start |
| 768 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_RUNTIME_NEXT \ |
| 769 | GOMP_loop_nonmonotonic_runtime_next |
| 770 | #define KMP_API_NAME_GOMP_LOOP_NONMONOTONIC_RUNTIME_START \ |
| 771 | GOMP_loop_nonmonotonic_runtime_start |
| 772 | #define KMP_API_NAME_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_NEXT \ |
| 773 | GOMP_loop_ull_maybe_nonmonotonic_runtime_next |
| 774 | #define KMP_API_NAME_GOMP_LOOP_ULL_MAYBE_NONMONOTONIC_RUNTIME_START \ |
| 775 | GOMP_loop_ull_maybe_nonmonotonic_runtime_start |
| 776 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_NEXT \ |
| 777 | GOMP_loop_ull_nonmonotonic_runtime_next |
| 778 | #define KMP_API_NAME_GOMP_LOOP_ULL_NONMONOTONIC_RUNTIME_START \ |
| 779 | GOMP_loop_ull_nonmonotonic_runtime_start |
| 780 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_NONMONOTONIC_RUNTIME \ |
| 781 | GOMP_parallel_loop_nonmonotonic_runtime |
| 782 | #define KMP_API_NAME_GOMP_PARALLEL_LOOP_MAYBE_NONMONOTONIC_RUNTIME \ |
| 783 | GOMP_parallel_loop_maybe_nonmonotonic_runtime |
| 784 | #define KMP_API_NAME_GOMP_TEAMS_REG GOMP_teams_reg |
| 785 | #define KMP_API_NAME_GOMP_TASKWAIT_DEPEND GOMP_taskwait_depend |
| 786 | #define KMP_API_NAME_GOMP_TASKGROUP_REDUCTION_REGISTER \ |
| 787 | GOMP_taskgroup_reduction_register |
| 788 | #define KMP_API_NAME_GOMP_TASKGROUP_REDUCTION_UNREGISTER \ |
| 789 | GOMP_taskgroup_reduction_unregister |
| 790 | #define KMP_API_NAME_GOMP_TASK_REDUCTION_REMAP GOMP_task_reduction_remap |
| 791 | #define KMP_API_NAME_GOMP_PARALLEL_REDUCTIONS GOMP_parallel_reductions |
| 792 | #define KMP_API_NAME_GOMP_LOOP_START GOMP_loop_start |
| 793 | #define KMP_API_NAME_GOMP_LOOP_ULL_START GOMP_loop_ull_start |
| 794 | #define KMP_API_NAME_GOMP_LOOP_DOACROSS_START GOMP_loop_doacross_start |
| 795 | #define KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_START GOMP_loop_ull_doacross_start |
| 796 | #define KMP_API_NAME_GOMP_LOOP_ORDERED_START GOMP_loop_ordered_start |
| 797 | #define KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_START GOMP_loop_ull_ordered_start |
| 798 | #define KMP_API_NAME_GOMP_SECTIONS2_START GOMP_sections2_start |
| 799 | #define KMP_API_NAME_GOMP_WORKSHARE_TASK_REDUCTION_UNREGISTER \ |
| 800 | GOMP_workshare_task_reduction_unregister |
| 801 | #define KMP_API_NAME_GOMP_ALLOC GOMP_alloc |
| 802 | #define KMP_API_NAME_GOMP_FREE GOMP_free |
| 803 | #endif /* KMP_FTN_OS_H */ |
| 804 | |