kmp_ftn_os.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef KMP_FTN_OS_H
00048 #define KMP_FTN_OS_H
00049
00050
00051
00052
00053
00054
00055 #if KMP_FTN_ENTRIES == KMP_FTN_PLAIN
00056
00057 #define FTN_SET_STACKSIZE kmp_set_stacksize
00058 #define FTN_SET_STACKSIZE_S kmp_set_stacksize_s
00059 #define FTN_GET_STACKSIZE kmp_get_stacksize
00060 #define FTN_GET_STACKSIZE_S kmp_get_stacksize_s
00061 #define FTN_SET_BLOCKTIME kmp_set_blocktime
00062 #define FTN_GET_BLOCKTIME kmp_get_blocktime
00063 #define FTN_SET_LIBRARY_SERIAL kmp_set_library_serial
00064 #define FTN_SET_LIBRARY_TURNAROUND kmp_set_library_turnaround
00065 #define FTN_SET_LIBRARY_THROUGHPUT kmp_set_library_throughput
00066 #define FTN_SET_LIBRARY kmp_set_library
00067 #define FTN_GET_LIBRARY kmp_get_library
00068 #define FTN_SET_DEFAULTS kmp_set_defaults
00069 #define FTN_SET_AFFINITY kmp_set_affinity
00070 #define FTN_GET_AFFINITY kmp_get_affinity
00071 #define FTN_GET_AFFINITY_MAX_PROC kmp_get_affinity_max_proc
00072 #define FTN_CREATE_AFFINITY_MASK kmp_create_affinity_mask
00073 #define FTN_DESTROY_AFFINITY_MASK kmp_destroy_affinity_mask
00074 #define FTN_SET_AFFINITY_MASK_PROC kmp_set_affinity_mask_proc
00075 #define FTN_UNSET_AFFINITY_MASK_PROC kmp_unset_affinity_mask_proc
00076 #define FTN_GET_AFFINITY_MASK_PROC kmp_get_affinity_mask_proc
00077
00078 #define FTN_MALLOC kmp_malloc
00079 #define FTN_CALLOC kmp_calloc
00080 #define FTN_REALLOC kmp_realloc
00081 #define FTN_FREE kmp_free
00082
00083 #define FTN_GET_NUM_KNOWN_THREADS kmp_get_num_known_threads
00084
00085 #define FTN_SET_NUM_THREADS omp_set_num_threads
00086 #define FTN_GET_NUM_THREADS omp_get_num_threads
00087 #define FTN_GET_MAX_THREADS omp_get_max_threads
00088 #define FTN_GET_THREAD_NUM omp_get_thread_num
00089 #define FTN_GET_NUM_PROCS omp_get_num_procs
00090 #define FTN_SET_DYNAMIC omp_set_dynamic
00091 #define FTN_GET_DYNAMIC omp_get_dynamic
00092 #define FTN_SET_NESTED omp_set_nested
00093 #define FTN_GET_NESTED omp_get_nested
00094 #define FTN_IN_PARALLEL omp_in_parallel
00095 #define FTN_GET_THREAD_LIMIT omp_get_thread_limit
00096 #define FTN_SET_SCHEDULE omp_set_schedule
00097 #define FTN_GET_SCHEDULE omp_get_schedule
00098 #define FTN_SET_MAX_ACTIVE_LEVELS omp_set_max_active_levels
00099 #define FTN_GET_MAX_ACTIVE_LEVELS omp_get_max_active_levels
00100 #define FTN_GET_ACTIVE_LEVEL omp_get_active_level
00101 #define FTN_GET_LEVEL omp_get_level
00102 #define FTN_GET_ANCESTOR_THREAD_NUM omp_get_ancestor_thread_num
00103 #define FTN_GET_TEAM_SIZE omp_get_team_size
00104 #define FTN_IN_FINAL omp_in_final
00105
00106 #define FTN_GET_PROC_BIND omp_get_proc_bind
00107
00108 #define FTN_INIT_LOCK omp_init_lock
00109 #define FTN_DESTROY_LOCK omp_destroy_lock
00110 #define FTN_SET_LOCK omp_set_lock
00111 #define FTN_UNSET_LOCK omp_unset_lock
00112 #define FTN_TEST_LOCK omp_test_lock
00113 #define FTN_INIT_NEST_LOCK omp_init_nest_lock
00114 #define FTN_DESTROY_NEST_LOCK omp_destroy_nest_lock
00115 #define FTN_SET_NEST_LOCK omp_set_nest_lock
00116 #define FTN_UNSET_NEST_LOCK omp_unset_nest_lock
00117 #define FTN_TEST_NEST_LOCK omp_test_nest_lock
00118
00119 #define FTN_SET_WARNINGS_ON kmp_set_warnings_on
00120 #define FTN_SET_WARNINGS_OFF kmp_set_warnings_off
00121
00122 #define FTN_GET_WTIME omp_get_wtime
00123 #define FTN_GET_WTICK omp_get_wtick
00124
00125 #endif
00126
00127
00128
00129 #if KMP_FTN_ENTRIES == KMP_FTN_APPEND
00130
00131 #define FTN_SET_STACKSIZE kmp_set_stacksize_
00132 #define FTN_SET_STACKSIZE_S kmp_set_stacksize_s_
00133 #define FTN_GET_STACKSIZE kmp_get_stacksize_
00134 #define FTN_GET_STACKSIZE_S kmp_get_stacksize_s_
00135 #define FTN_SET_BLOCKTIME kmp_set_blocktime_
00136 #define FTN_GET_BLOCKTIME kmp_get_blocktime_
00137 #define FTN_SET_LIBRARY_SERIAL kmp_set_library_serial_
00138 #define FTN_SET_LIBRARY_TURNAROUND kmp_set_library_turnaround_
00139 #define FTN_SET_LIBRARY_THROUGHPUT kmp_set_library_throughput_
00140 #define FTN_SET_LIBRARY kmp_set_library_
00141 #define FTN_GET_LIBRARY kmp_get_library_
00142 #define FTN_SET_DEFAULTS kmp_set_defaults_
00143 #define FTN_SET_AFFINITY kmp_set_affinity_
00144 #define FTN_GET_AFFINITY kmp_get_affinity_
00145 #define FTN_GET_AFFINITY_MAX_PROC kmp_get_affinity_max_proc_
00146 #define FTN_CREATE_AFFINITY_MASK kmp_create_affinity_mask_
00147 #define FTN_DESTROY_AFFINITY_MASK kmp_destroy_affinity_mask_
00148 #define FTN_SET_AFFINITY_MASK_PROC kmp_set_affinity_mask_proc_
00149 #define FTN_UNSET_AFFINITY_MASK_PROC kmp_unset_affinity_mask_proc_
00150 #define FTN_GET_AFFINITY_MASK_PROC kmp_get_affinity_mask_proc_
00151
00152 #define FTN_MALLOC kmp_malloc_
00153 #define FTN_CALLOC kmp_calloc_
00154 #define FTN_REALLOC kmp_realloc_
00155 #define FTN_FREE kmp_free_
00156
00157 #define FTN_GET_NUM_KNOWN_THREADS kmp_get_num_known_threads_
00158
00159 #define FTN_SET_NUM_THREADS omp_set_num_threads_
00160 #define FTN_GET_NUM_THREADS omp_get_num_threads_
00161 #define FTN_GET_MAX_THREADS omp_get_max_threads_
00162 #define FTN_GET_THREAD_NUM omp_get_thread_num_
00163 #define FTN_GET_NUM_PROCS omp_get_num_procs_
00164 #define FTN_SET_DYNAMIC omp_set_dynamic_
00165 #define FTN_GET_DYNAMIC omp_get_dynamic_
00166 #define FTN_SET_NESTED omp_set_nested_
00167 #define FTN_GET_NESTED omp_get_nested_
00168 #define FTN_IN_PARALLEL omp_in_parallel_
00169 #define FTN_GET_THREAD_LIMIT omp_get_thread_limit_
00170 #define FTN_SET_SCHEDULE omp_set_schedule_
00171 #define FTN_GET_SCHEDULE omp_get_schedule_
00172 #define FTN_SET_MAX_ACTIVE_LEVELS omp_set_max_active_levels_
00173 #define FTN_GET_MAX_ACTIVE_LEVELS omp_get_max_active_levels_
00174 #define FTN_GET_ACTIVE_LEVEL omp_get_active_level_
00175 #define FTN_GET_LEVEL omp_get_level_
00176 #define FTN_GET_ANCESTOR_THREAD_NUM omp_get_ancestor_thread_num_
00177 #define FTN_GET_TEAM_SIZE omp_get_team_size_
00178 #define FTN_IN_FINAL omp_in_final_
00179
00180 #define FTN_GET_PROC_BIND omp_get_proc_bind_
00181
00182 #define FTN_INIT_LOCK omp_init_lock_
00183 #define FTN_DESTROY_LOCK omp_destroy_lock_
00184 #define FTN_SET_LOCK omp_set_lock_
00185 #define FTN_UNSET_LOCK omp_unset_lock_
00186 #define FTN_TEST_LOCK omp_test_lock_
00187 #define FTN_INIT_NEST_LOCK omp_init_nest_lock_
00188 #define FTN_DESTROY_NEST_LOCK omp_destroy_nest_lock_
00189 #define FTN_SET_NEST_LOCK omp_set_nest_lock_
00190 #define FTN_UNSET_NEST_LOCK omp_unset_nest_lock_
00191 #define FTN_TEST_NEST_LOCK omp_test_nest_lock_
00192
00193 #define FTN_SET_WARNINGS_ON kmp_set_warnings_on_
00194 #define FTN_SET_WARNINGS_OFF kmp_set_warnings_off_
00195
00196 #define FTN_GET_WTIME omp_get_wtime_
00197 #define FTN_GET_WTICK omp_get_wtick_
00198
00199 #endif
00200
00201
00202
00203 #if KMP_FTN_ENTRIES == KMP_FTN_UPPER
00204
00205 #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE
00206 #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S
00207 #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE
00208 #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S
00209 #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME
00210 #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME
00211 #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL
00212 #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND
00213 #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT
00214 #define FTN_SET_LIBRARY KMP_SET_LIBRARY
00215 #define FTN_GET_LIBRARY KMP_GET_LIBRARY
00216 #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS
00217 #define FTN_SET_AFFINITY KMP_SET_AFFINITY
00218 #define FTN_GET_AFFINITY KMP_GET_AFFINITY
00219 #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC
00220 #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK
00221 #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK
00222 #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC
00223 #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC
00224 #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC
00225
00226 #define FTN_MALLOC KMP_MALLOC
00227 #define FTN_CALLOC KMP_CALLOC
00228 #define FTN_REALLOC KMP_REALLOC
00229 #define FTN_FREE KMP_FREE
00230
00231 #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS
00232
00233 #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS
00234 #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS
00235 #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS
00236 #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM
00237 #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS
00238 #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC
00239 #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC
00240 #define FTN_SET_NESTED OMP_SET_NESTED
00241 #define FTN_GET_NESTED OMP_GET_NESTED
00242 #define FTN_IN_PARALLEL OMP_IN_PARALLEL
00243 #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT
00244 #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE
00245 #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE
00246 #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS
00247 #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS
00248 #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL
00249 #define FTN_GET_LEVEL OMP_GET_LEVEL
00250 #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM
00251 #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE
00252 #define FTN_IN_FINAL OMP_IN_FINAL
00253
00254 #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND
00255
00256 #define FTN_INIT_LOCK OMP_INIT_LOCK
00257 #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK
00258 #define FTN_SET_LOCK OMP_SET_LOCK
00259 #define FTN_UNSET_LOCK OMP_UNSET_LOCK
00260 #define FTN_TEST_LOCK OMP_TEST_LOCK
00261 #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK
00262 #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK
00263 #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK
00264 #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK
00265 #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK
00266
00267 #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON
00268 #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF
00269
00270 #define FTN_GET_WTIME OMP_GET_WTIME
00271 #define FTN_GET_WTICK OMP_GET_WTICK
00272
00273 #endif
00274
00275
00276
00277 #if KMP_FTN_ENTRIES == KMP_FTN_UAPPEND
00278
00279 #define FTN_SET_STACKSIZE KMP_SET_STACKSIZE_
00280 #define FTN_SET_STACKSIZE_S KMP_SET_STACKSIZE_S_
00281 #define FTN_GET_STACKSIZE KMP_GET_STACKSIZE_
00282 #define FTN_GET_STACKSIZE_S KMP_GET_STACKSIZE_S_
00283 #define FTN_SET_BLOCKTIME KMP_SET_BLOCKTIME_
00284 #define FTN_GET_BLOCKTIME KMP_GET_BLOCKTIME_
00285 #define FTN_SET_LIBRARY_SERIAL KMP_SET_LIBRARY_SERIAL_
00286 #define FTN_SET_LIBRARY_TURNAROUND KMP_SET_LIBRARY_TURNAROUND_
00287 #define FTN_SET_LIBRARY_THROUGHPUT KMP_SET_LIBRARY_THROUGHPUT_
00288 #define FTN_SET_LIBRARY KMP_SET_LIBRARY_
00289 #define FTN_GET_LIBRARY KMP_GET_LIBRARY_
00290 #define FTN_SET_DEFAULTS KMP_SET_DEFAULTS_
00291 #define FTN_SET_AFFINITY KMP_SET_AFFINITY_
00292 #define FTN_GET_AFFINITY KMP_GET_AFFINITY_
00293 #define FTN_GET_AFFINITY_MAX_PROC KMP_GET_AFFINITY_MAX_PROC_
00294 #define FTN_CREATE_AFFINITY_MASK KMP_CREATE_AFFINITY_MASK_
00295 #define FTN_DESTROY_AFFINITY_MASK KMP_DESTROY_AFFINITY_MASK_
00296 #define FTN_SET_AFFINITY_MASK_PROC KMP_SET_AFFINITY_MASK_PROC_
00297 #define FTN_UNSET_AFFINITY_MASK_PROC KMP_UNSET_AFFINITY_MASK_PROC_
00298 #define FTN_GET_AFFINITY_MASK_PROC KMP_GET_AFFINITY_MASK_PROC_
00299
00300 #define FTN_MALLOC KMP_MALLOC_
00301 #define FTN_CALLOC KMP_CALLOC_
00302 #define FTN_REALLOC KMP_REALLOC_
00303 #define FTN_FREE KMP_FREE_
00304
00305 #define FTN_GET_NUM_KNOWN_THREADS KMP_GET_NUM_KNOWN_THREADS_
00306
00307 #define FTN_SET_NUM_THREADS OMP_SET_NUM_THREADS_
00308 #define FTN_GET_NUM_THREADS OMP_GET_NUM_THREADS_
00309 #define FTN_GET_MAX_THREADS OMP_GET_MAX_THREADS_
00310 #define FTN_GET_THREAD_NUM OMP_GET_THREAD_NUM_
00311 #define FTN_GET_NUM_PROCS OMP_GET_NUM_PROCS_
00312 #define FTN_SET_DYNAMIC OMP_SET_DYNAMIC_
00313 #define FTN_GET_DYNAMIC OMP_GET_DYNAMIC_
00314 #define FTN_SET_NESTED OMP_SET_NESTED_
00315 #define FTN_GET_NESTED OMP_GET_NESTED_
00316 #define FTN_IN_PARALLEL OMP_IN_PARALLEL_
00317 #define FTN_GET_THREAD_LIMIT OMP_GET_THREAD_LIMIT_
00318 #define FTN_SET_SCHEDULE OMP_SET_SCHEDULE_
00319 #define FTN_GET_SCHEDULE OMP_GET_SCHEDULE_
00320 #define FTN_SET_MAX_ACTIVE_LEVELS OMP_SET_MAX_ACTIVE_LEVELS_
00321 #define FTN_GET_MAX_ACTIVE_LEVELS OMP_GET_MAX_ACTIVE_LEVELS_
00322 #define FTN_GET_ACTIVE_LEVEL OMP_GET_ACTIVE_LEVEL_
00323 #define FTN_GET_LEVEL OMP_GET_LEVEL_
00324 #define FTN_GET_ANCESTOR_THREAD_NUM OMP_GET_ANCESTOR_THREAD_NUM_
00325 #define FTN_GET_TEAM_SIZE OMP_GET_TEAM_SIZE_
00326 #define FTN_IN_FINAL OMP_IN_FINAL_
00327
00328 #define FTN_GET_PROC_BIND OMP_GET_PROC_BIND_
00329
00330 #define FTN_INIT_LOCK OMP_INIT_LOCK_
00331 #define FTN_DESTROY_LOCK OMP_DESTROY_LOCK_
00332 #define FTN_SET_LOCK OMP_SET_LOCK_
00333 #define FTN_UNSET_LOCK OMP_UNSET_LOCK_
00334 #define FTN_TEST_LOCK OMP_TEST_LOCK_
00335 #define FTN_INIT_NEST_LOCK OMP_INIT_NEST_LOCK_
00336 #define FTN_DESTROY_NEST_LOCK OMP_DESTROY_NEST_LOCK_
00337 #define FTN_SET_NEST_LOCK OMP_SET_NEST_LOCK_
00338 #define FTN_UNSET_NEST_LOCK OMP_UNSET_NEST_LOCK_
00339 #define FTN_TEST_NEST_LOCK OMP_TEST_NEST_LOCK_
00340
00341 #define FTN_SET_WARNINGS_ON KMP_SET_WARNINGS_ON_
00342 #define FTN_SET_WARNINGS_OFF KMP_SET_WARNINGS_OFF_
00343
00344 #define FTN_GET_WTIME OMP_GET_WTIME_
00345 #define FTN_GET_WTICK OMP_GET_WTICK_
00346
00347 #endif
00348
00349 #endif
00350