@@ -169,17 +169,6 @@ class kmp_stats_list;
169
169
#define USE_FAST_MEMORY 3
170
170
#endif
171
171
172
- #ifndef KMP_NESTED_HOT_TEAMS
173
- #define KMP_NESTED_HOT_TEAMS 0
174
- #define USE_NESTED_HOT_ARG (x )
175
- #else
176
- #if KMP_NESTED_HOT_TEAMS
177
- #define USE_NESTED_HOT_ARG (x ) , x
178
- #else
179
- #define USE_NESTED_HOT_ARG (x )
180
- #endif
181
- #endif
182
-
183
172
// Assume using BGET compare_exchange instruction instead of lock by default.
184
173
#ifndef USE_CMP_XCHG_FOR_BGET
185
174
#define USE_CMP_XCHG_FOR_BGET 1
@@ -2940,14 +2929,12 @@ typedef struct kmp_free_list {
2940
2929
// sync list)
2941
2930
} kmp_free_list_t ;
2942
2931
#endif
2943
- #if KMP_NESTED_HOT_TEAMS
2944
2932
// Hot teams array keeps hot teams and their sizes for given thread. Hot teams
2945
2933
// are not put in teams pool, and they don't put threads in threads pool.
2946
2934
typedef struct kmp_hot_team_ptr {
2947
2935
kmp_team_p *hot_team; // pointer to hot_team of given nesting level
2948
2936
kmp_int32 hot_team_nth; // number of threads allocated for the hot_team
2949
2937
} kmp_hot_team_ptr_t ;
2950
- #endif
2951
2938
typedef struct kmp_teams_size {
2952
2939
kmp_int32 nteams; // number of teams in a league
2953
2940
kmp_int32 nth; // number of threads in each team of the league
@@ -3022,9 +3009,7 @@ typedef struct KMP_ALIGN_CACHE kmp_base_info {
3022
3009
int th_nt_sev; // error severity for strict modifier
3023
3010
const char *th_nt_msg; // error message for strict modifier
3024
3011
int th_set_nested_nth_sz;
3025
- #if KMP_NESTED_HOT_TEAMS
3026
3012
kmp_hot_team_ptr_t *th_hot_teams; /* array of hot teams */
3027
- #endif
3028
3013
kmp_proc_bind_t
3029
3014
th_set_proc_bind; /* if != proc_bind_default, use request for next fork */
3030
3015
kmp_teams_size_t
@@ -3580,10 +3565,8 @@ extern int __kmp_dflt_max_active_levels;
3580
3565
extern bool __kmp_dflt_max_active_levels_set;
3581
3566
extern int __kmp_dispatch_num_buffers; /* max possible dynamic loops in
3582
3567
concurrent execution per team */
3583
- #if KMP_NESTED_HOT_TEAMS
3584
3568
extern int __kmp_hot_teams_mode;
3585
3569
extern int __kmp_hot_teams_max_level;
3586
- #endif
3587
3570
3588
3571
#if KMP_MIC_SUPPORTED
3589
3572
extern enum mic_type __kmp_mic_type;
@@ -4067,16 +4050,16 @@ extern void __kmp_suspend_uninitialize_thread(kmp_info_t *th);
4067
4050
4068
4051
extern kmp_info_t *__kmp_allocate_thread (kmp_root_t *root, kmp_team_t *team,
4069
4052
int tid);
4070
- extern kmp_team_t *
4071
- __kmp_allocate_team ( kmp_root_t *root, int new_nproc, int max_nproc,
4053
+ extern kmp_team_t *__kmp_allocate_team ( kmp_root_t *root, int new_nproc,
4054
+ int max_nproc,
4072
4055
#if OMPT_SUPPORT
4073
- ompt_data_t ompt_parallel_data,
4056
+ ompt_data_t ompt_parallel_data,
4074
4057
#endif
4075
- kmp_proc_bind_t proc_bind, kmp_internal_control_t *new_icvs,
4076
- int argc USE_NESTED_HOT_ARG (kmp_info_t *thr));
4058
+ kmp_proc_bind_t proc_bind,
4059
+ kmp_internal_control_t *new_icvs,
4060
+ int argc, kmp_info_t *thr);
4077
4061
extern void __kmp_free_thread (kmp_info_t *);
4078
- extern void __kmp_free_team (kmp_root_t *,
4079
- kmp_team_t *USE_NESTED_HOT_ARG (kmp_info_t *));
4062
+ extern void __kmp_free_team (kmp_root_t *, kmp_team_t *, kmp_info_t *);
4080
4063
extern kmp_team_t *__kmp_reap_team (kmp_team_t *);
4081
4064
4082
4065
/* ------------------------------------------------------------------------ */
0 commit comments