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()
113 kmp_info_t *th = __kmp_threads[__kmp_gtid_from_tid((int)id, team)]; in __kmp_initialize_self_buffer() local
115 (kmp_hw_core_type_t)th->th.th_topology_attrs.core_type; in __kmp_initialize_self_buffer()
198 kmp_info_t *th; in __kmp_dispatch_init_algorithm() local
219 th = __kmp_threads[gtid]; in __kmp_dispatch_init_algorithm()
220 team = th->th.th_team; in __kmp_dispatch_init_algorithm()
226 KMP_MASTER_GTID(gtid) && th->th.th_teams_microtask == NULL && in __kmp_dispatch_init_algorithm()
468 core_type = (kmp_hw_core_type_t)th->th.th_topology_attrs.core_type; in __kmp_dispatch_init_algorithm()
473 ->th.th_topology_attrs.core_type; in __kmp_dispatch_init_algorithm()
474 int id = team->t.t_threads[i]->th.th_topology_ids.os_id; in __kmp_dispatch_init_algorithm()
477 team->t.t_threads[i]->th.th_info.ds.ds_tid; in __kmp_dispatch_init_algorithm()
968 kmp_info_t *th; in __kmp_dispatch_init() local
1002 th = __kmp_threads[gtid]; in __kmp_dispatch_init()
1003 team = th->th.th_team; in __kmp_dispatch_init()
1005 th->th.th_ident = loc; in __kmp_dispatch_init()
1022 my_buffer_index = th->th.th_dispatch->th_disp_index; in __kmp_dispatch_init()
1024 &th->th.th_dispatch in __kmp_dispatch_init()
1051 KMP_MASTER_GTID(gtid) && th->th.th_teams_microtask == NULL && in __kmp_dispatch_init()
1056 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_init()
1058 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_init()
1059 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_init()
1061 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmp_dispatch_init()
1065 &th->th.th_dispatch in __kmp_dispatch_init()
1089 chunk, (T)th->th.th_team_nproc, in __kmp_dispatch_init()
1090 (T)th->th.th_info.ds.ds_tid); in __kmp_dispatch_init()
1093 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmp_dispatch_init()
1094 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmp_dispatch_init()
1096 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo<UT>; in __kmp_dispatch_init()
1097 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo<UT>; in __kmp_dispatch_init()
1099 th->th.th_dispatch->th_dispatch_pr_current = (dispatch_private_info_t *)pr; in __kmp_dispatch_init()
1100 th->th.th_dispatch->th_dispatch_sh_current = in __kmp_dispatch_init()
1183 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish() local
1186 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish()
1190 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish()
1193 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish()
1196 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish()
1197 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish()
1247 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_finish_chunk() local
1250 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_finish_chunk()
1253 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_finish_chunk()
1256 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_finish_chunk()
1259 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_finish_chunk()
1260 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish_chunk()
1336 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next_algorithm() local
1337 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next_algorithm()
1339 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next_algorithm()
1340 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next_algorithm()
1396 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
1539 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next_algorithm()
2199 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_next() local
2200 kmp_team_t *team = th->th.th_team; in __kmp_dispatch_next()
2211 th->th.th_dispatch->th_disp_buffer); /* top of the stack */ in __kmp_dispatch_next()
2327 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmp_dispatch_next()
2328 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next()
2331 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_next()
2334 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_next()
2343 p_st, th->th.th_team_nproc, in __kmp_dispatch_next()
2344 th->th.th_info.ds.ds_tid); in __kmp_dispatch_next()
2364 if (num_done == th->th.th_team_nproc - 1) { in __kmp_dispatch_next()
2368 int idx = (th->th.th_dispatch->th_disp_index - 1) % in __kmp_dispatch_next()
2371 for (i = 0; i < th->th.th_team_nproc; ++i) { in __kmp_dispatch_next()
2413 th->th.th_dispatch->th_deo_fcn = NULL; in __kmp_dispatch_next()
2414 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmp_dispatch_next()
2415 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmp_dispatch_next()
2416 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmp_dispatch_next()
2467 kmp_info_t *th; in __kmpc_sections_init() local
2479 th = __kmp_threads[gtid]; in __kmpc_sections_init()
2480 team = th->th.th_team; in __kmpc_sections_init()
2482 th->th.th_ident = loc; in __kmpc_sections_init()
2492 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmpc_sections_init()
2493 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmpc_sections_init()
2495 my_buffer_index = th->th.th_dispatch->th_disp_index++; in __kmpc_sections_init()
2503 th->th.th_dispatch->th_deo_fcn = __kmp_dispatch_deo_error; in __kmpc_sections_init()
2504 th->th.th_dispatch->th_dxo_fcn = __kmp_dispatch_dxo_error; in __kmpc_sections_init()
2518 th->th.th_dispatch->th_dispatch_pr_current = in __kmpc_sections_init()
2520 th->th.th_dispatch->th_dispatch_sh_current = in __kmpc_sections_init()
2553 kmp_info_t *th = __kmp_threads[gtid]; in __kmpc_next_section() local
2555 kmp_team_t *team = th->th.th_team; in __kmpc_next_section()
2566 KMP_DEBUG_ASSERT(th->th.th_dispatch == in __kmpc_next_section()
2567 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmpc_next_section()
2569 KMP_DEBUG_ASSERT(!(th->th.th_dispatch->th_dispatch_pr_current)); in __kmpc_next_section()
2571 th->th.th_dispatch->th_dispatch_sh_current); in __kmpc_next_section()
2590 if (num_done == th->th.th_team_nproc - 1) { in __kmpc_next_section()
2608 th->th.th_dispatch->th_deo_fcn = NULL; in __kmpc_next_section()
2609 th->th.th_dispatch->th_dxo_fcn = NULL; in __kmpc_next_section()
2610 th->th.th_dispatch->th_dispatch_sh_current = NULL; in __kmpc_next_section()
2611 th->th.th_dispatch->th_dispatch_pr_current = NULL; in __kmpc_next_section()
2639 kmp_info_t *th = __kmp_threads[gtid]; in __kmpc_end_sections() local
2640 int active = !th->th.th_team->t.t_serialized; in __kmpc_end_sections()
2670 kmp_info_t *th; in __kmp_dist_get_bounds() local
2707 th = __kmp_threads[gtid]; in __kmp_dist_get_bounds()
2708 team = th->th.th_team; in __kmp_dist_get_bounds()
2709 KMP_DEBUG_ASSERT(th->th.th_teams_microtask); // we are in the teams construct in __kmp_dist_get_bounds()
2710 nteams = th->th.th_teams_size.nteams; in __kmp_dist_get_bounds()