@@ -160,17 +160,6 @@ class kmp_stats_list;
160
160
#define USE_FAST_MEMORY 3
161
161
#endif
162
162
163
- #ifndef KMP_NESTED_HOT_TEAMS
164
- #define KMP_NESTED_HOT_TEAMS 0
165
- #define USE_NESTED_HOT_ARG (x )
166
- #else
167
- #if KMP_NESTED_HOT_TEAMS
168
- #define USE_NESTED_HOT_ARG (x ) , x
169
- #else
170
- #define USE_NESTED_HOT_ARG (x )
171
- #endif
172
- #endif
173
-
174
163
// Assume using BGET compare_exchange instruction instead of lock by default.
175
164
#ifndef USE_CMP_XCHG_FOR_BGET
176
165
#define USE_CMP_XCHG_FOR_BGET 1
@@ -2913,14 +2902,12 @@ typedef struct kmp_free_list {
2913
2902
// sync list)
2914
2903
} kmp_free_list_t ;
2915
2904
#endif
2916
- #if KMP_NESTED_HOT_TEAMS
2917
2905
// Hot teams array keeps hot teams and their sizes for given thread. Hot teams
2918
2906
// are not put in teams pool, and they don't put threads in threads pool.
2919
2907
typedef struct kmp_hot_team_ptr {
2920
2908
kmp_team_p *hot_team; // pointer to hot_team of given nesting level
2921
2909
kmp_int32 hot_team_nth; // number of threads allocated for the hot_team
2922
2910
} kmp_hot_team_ptr_t ;
2923
- #endif
2924
2911
typedef struct kmp_teams_size {
2925
2912
kmp_int32 nteams; // number of teams in a league
2926
2913
kmp_int32 nth; // number of threads in each team of the league
@@ -2995,9 +2982,7 @@ typedef struct KMP_ALIGN_CACHE kmp_base_info {
2995
2982
int th_nt_sev; // error severity for strict modifier
2996
2983
const char *th_nt_msg; // error message for strict modifier
2997
2984
int th_set_nested_nth_sz;
2998
- #if KMP_NESTED_HOT_TEAMS
2999
2985
kmp_hot_team_ptr_t *th_hot_teams; /* array of hot teams */
3000
- #endif
3001
2986
kmp_proc_bind_t
3002
2987
th_set_proc_bind; /* if != proc_bind_default, use request for next fork */
3003
2988
kmp_teams_size_t
@@ -3553,10 +3538,8 @@ extern int __kmp_dflt_max_active_levels;
3553
3538
extern bool __kmp_dflt_max_active_levels_set;
3554
3539
extern int __kmp_dispatch_num_buffers; /* max possible dynamic loops in
3555
3540
concurrent execution per team */
3556
- #if KMP_NESTED_HOT_TEAMS
3557
3541
extern int __kmp_hot_teams_mode;
3558
3542
extern int __kmp_hot_teams_max_level;
3559
- #endif
3560
3543
3561
3544
#if KMP_MIC_SUPPORTED
3562
3545
extern enum mic_type __kmp_mic_type;
@@ -4040,16 +4023,16 @@ extern void __kmp_suspend_uninitialize_thread(kmp_info_t *th);
4040
4023
4041
4024
extern kmp_info_t *__kmp_allocate_thread (kmp_root_t *root, kmp_team_t *team,
4042
4025
int tid);
4043
- extern kmp_team_t *
4044
- __kmp_allocate_team ( kmp_root_t *root, int new_nproc, int max_nproc,
4026
+ extern kmp_team_t *__kmp_allocate_team ( kmp_root_t *root, int new_nproc,
4027
+ int max_nproc,
4045
4028
#if OMPT_SUPPORT
4046
- ompt_data_t ompt_parallel_data,
4029
+ ompt_data_t ompt_parallel_data,
4047
4030
#endif
4048
- kmp_proc_bind_t proc_bind, kmp_internal_control_t *new_icvs,
4049
- int argc USE_NESTED_HOT_ARG (kmp_info_t *thr));
4031
+ kmp_proc_bind_t proc_bind,
4032
+ kmp_internal_control_t *new_icvs,
4033
+ int argc, kmp_info_t *thr);
4050
4034
extern void __kmp_free_thread (kmp_info_t *);
4051
- extern void __kmp_free_team (kmp_root_t *,
4052
- kmp_team_t *USE_NESTED_HOT_ARG (kmp_info_t *));
4035
+ extern void __kmp_free_team (kmp_root_t *, kmp_team_t *, kmp_info_t *);
4053
4036
extern kmp_team_t *__kmp_reap_team (kmp_team_t *);
4054
4037
4055
4038
/* ------------------------------------------------------------------------ */
0 commit comments