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()
807 kmp_info_t *th; in __kmp_dispatch_init() local
841 th = __kmp_threads[gtid]; in __kmp_dispatch_init()
842 team = th->th.th_team; in __kmp_dispatch_init()
844 th->th.th_ident = loc; in __kmp_dispatch_init()
861 my_buffer_index = th->th.th_dispatch->th_disp_index; in __kmp_dispatch_init()
863 &th->th.th_dispatch in __kmp_dispatch_init()
890 KMP_MASTER_GTID(gtid) && th->th.th_teams_microtask == NULL && in __kmp_dispatch_init()
895 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_init()
897 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_init()
898 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_init()
900 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmp_dispatch_init()
904 &th->th.th_dispatch in __kmp_dispatch_init()
928 chunk, (T)th->th.th_team_nproc, in __kmp_dispatch_init()
929 (T)th->th.th_info.ds.ds_tid); in __kmp_dispatch_init()
932 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmp_dispatch_init()
933 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmp_dispatch_init()
935 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo<UT>; in __kmp_dispatch_init()
936 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo<UT>; in __kmp_dispatch_init()
938 th->th.th_dispatch->th_dispatch_pr_current = (dispatch_private_info_t *)pr; in __kmp_dispatch_init()
939 th->th.th_dispatch->th_dispatch_sh_current = in __kmp_dispatch_init()
1022 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish() local
1025 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish()
1029 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish()
1032 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish()
1035 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish()
1036 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish()
1086 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish_chunk() local
1089 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish_chunk()
1092 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish_chunk()
1095 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish_chunk()
1098 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish_chunk()
1099 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish_chunk()
1175 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next_algorithm() local
1176 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next_algorithm()
1178 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next_algorithm()
1179 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next_algorithm()
1235 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
1378 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
2038 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next() local
2039 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next()
2050 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_next()
2166 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next()
2167 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next()
2170 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next()
2173 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_next()
2182 p_st, th->th.th_team_nproc, in __kmp_dispatch_next()
2183 th->th.th_info.ds.ds_tid); in __kmp_dispatch_next()
2203 if (num_done == th->th.th_team_nproc - 1) { in __kmp_dispatch_next()
2207 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next()
2210 for (i = 0; i < th->th.th_team_nproc; ++i) { in __kmp_dispatch_next()
2252 th->th.th_dispatch->th_deo_fcn = NULL; in __kmp_dispatch_next()
2253 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmp_dispatch_next()
2254 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmp_dispatch_next()
2255 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmp_dispatch_next()
2306 kmp_info_t *th; in __kmpc_sections_init() local
2318 th = __kmp_threads[gtid]; in __kmpc_sections_init()
2319 team = th->th.th_team; in __kmpc_sections_init()
2321 th->th.th_ident = loc; in __kmpc_sections_init()
2331 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmpc_sections_init()
2332 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmpc_sections_init()
2334 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmpc_sections_init()
2342 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmpc_sections_init()
2343 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmpc_sections_init()
2357 th->th.th_dispatch->th_dispatch_pr_current = in __kmpc_sections_init()
2359 th->th.th_dispatch->th_dispatch_sh_current = in __kmpc_sections_init()
2392 kmp_info_t *th = __kmp_threads[gtid]; in __kmpc_next_section() local
2394 kmp_team_t *team = th->th.th_team; in __kmpc_next_section()
2405 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmpc_next_section()
2406 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmpc_next_section()
2408 KMP_DEBUG_ASSERT(!(th->th.th_dispatch->th_dispatch_pr_current)); in __kmpc_next_section()
2410 th->th.th_dispatch->th_dispatch_sh_current); in __kmpc_next_section()
2429 if (num_done == th->th.th_team_nproc - 1) { in __kmpc_next_section()
2447 th->th.th_dispatch->th_deo_fcn = NULL; in __kmpc_next_section()
2448 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmpc_next_section()
2449 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmpc_next_section()
2450 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmpc_next_section()
2479 kmp_info_t *th = __kmp_threads[gtid]; in __kmpc_end_sections() local
2480 int active = !th->th.th_team->t.t_serialized; in __kmpc_end_sections()
2510 kmp_info_t *th; in __kmp_dist_get_bounds() local
2547 th = __kmp_threads[gtid]; in __kmp_dist_get_bounds()
2548 team = th->th.th_team; in __kmp_dist_get_bounds()
2549 KMP_DEBUG_ASSERT(th->th.th_teams_microtask); // we are in the teams construct in __kmp_dist_get_bounds()
2550 nteams = th->th.th_teams_size.nteams; in __kmp_dist_get_bounds()