Lines Matching refs:th
43 kmp_info_t *th; in __kmp_dispatch_deo_error() local
48 th = __kmp_threads[*gtid_ref]; in __kmp_dispatch_deo_error()
49 if (th->th.th_root->r.r_active && in __kmp_dispatch_deo_error()
50 (th->th.th_dispatch->th_dispatch_pr_current->pushed_ws != ct_none)) { in __kmp_dispatch_deo_error()
61 kmp_info_t *th; in __kmp_dispatch_dxo_error() local
64 th = __kmp_threads[*gtid_ref]; in __kmp_dispatch_dxo_error()
65 if (th->th.th_dispatch->th_dispatch_pr_current->pushed_ws != ct_none) { in __kmp_dispatch_dxo_error()
134 kmp_info_t *th; in __kmp_dispatch_init_algorithm() local
155 th = __kmp_threads[gtid]; in __kmp_dispatch_init_algorithm()
156 team = th->th.th_team; in __kmp_dispatch_init_algorithm()
162 KMP_MASTER_GTID(gtid) && th->th.th_teams_microtask == NULL && in __kmp_dispatch_init_algorithm()
804 kmp_info_t *th; in __kmp_dispatch_init() local
838 th = __kmp_threads[gtid]; in __kmp_dispatch_init()
839 team = th->th.th_team; in __kmp_dispatch_init()
841 th->th.th_ident = loc; in __kmp_dispatch_init()
858 my_buffer_index = th->th.th_dispatch->th_disp_index; in __kmp_dispatch_init()
860 &th->th.th_dispatch in __kmp_dispatch_init()
887 KMP_MASTER_GTID(gtid) && th->th.th_teams_microtask == NULL && in __kmp_dispatch_init()
892 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_init()
894 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_init()
895 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_init()
897 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmp_dispatch_init()
901 &th->th.th_dispatch in __kmp_dispatch_init()
925 chunk, (T)th->th.th_team_nproc, in __kmp_dispatch_init()
926 (T)th->th.th_info.ds.ds_tid); in __kmp_dispatch_init()
929 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmp_dispatch_init()
930 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmp_dispatch_init()
932 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo<UT>; in __kmp_dispatch_init()
933 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo<UT>; in __kmp_dispatch_init()
935 th->th.th_dispatch->th_dispatch_pr_current = (dispatch_private_info_t *)pr; in __kmp_dispatch_init()
936 th->th.th_dispatch->th_dispatch_sh_current = in __kmp_dispatch_init()
1019 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish() local
1022 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish()
1026 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish()
1029 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish()
1032 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish()
1033 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish()
1083 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish_chunk() local
1086 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish_chunk()
1089 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish_chunk()
1092 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish_chunk()
1095 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish_chunk()
1096 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish_chunk()
1172 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next_algorithm() local
1173 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next_algorithm()
1175 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next_algorithm()
1176 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next_algorithm()
1232 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
1375 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
2022 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next() local
2023 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next()
2034 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_next()
2149 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next()
2150 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next()
2153 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next()
2156 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_next()
2165 p_st, th->th.th_team_nproc, in __kmp_dispatch_next()
2166 th->th.th_info.ds.ds_tid); in __kmp_dispatch_next()
2186 if (num_done == th->th.th_team_nproc - 1) { in __kmp_dispatch_next()
2190 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next()
2193 for (i = 0; i < th->th.th_team_nproc; ++i) { in __kmp_dispatch_next()
2235 th->th.th_dispatch->th_deo_fcn = NULL; in __kmp_dispatch_next()
2236 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmp_dispatch_next()
2237 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmp_dispatch_next()
2238 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmp_dispatch_next()
2279 kmp_info_t *th; in __kmp_dist_get_bounds() local
2316 th = __kmp_threads[gtid]; in __kmp_dist_get_bounds()
2317 team = th->th.th_team; in __kmp_dist_get_bounds()
2318 KMP_DEBUG_ASSERT(th->th.th_teams_microtask); // we are in the teams construct in __kmp_dist_get_bounds()
2319 nteams = th->th.th_teams_size.nteams; in __kmp_dist_get_bounds()