Lines Matching refs:__kmp_threads
151 other_threads = __kmp_threads; in __kmp_get_global_thread_id()
308 kmp_info_t *f_th = (kmp_info_t *)TCR_SYNC_PTR(__kmp_threads[f]); in __kmp_check_stack_overlap()
616 if (__kmp_threads[gtid]->th.th_root->r.r_active) in __kmp_parallel_deo()
642 if (__kmp_threads[gtid]->th.th_root->r.r_active) in __kmp_parallel_dxo()
670 th = __kmp_threads[gtid]; in __kmp_enter_single()
859 if (TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_reserve_threads()
1112 this_thr = __kmp_threads[global_tid]; in __kmp_serialized_parallel()
1398 master_th = __kmp_threads[gtid]; // AC: potentially unsafe, not in sync with in __kmp_fork_call()
2234 KMP_DEBUG_ASSERT(team == __kmp_threads[gtid]->th.th_team); in __kmp_fork_call()
2349 master_th = __kmp_threads[gtid]; in __kmp_join_call()
2711 thread = __kmp_threads[gtid]; in __kmp_set_num_threads()
2811 thread = __kmp_threads[gtid]; in __kmp_set_max_active_levels()
2825 thread = __kmp_threads[gtid]; in __kmp_get_max_active_levels()
2877 thread = __kmp_threads[gtid]; in __kmp_set_schedule()
2915 thread = __kmp_threads[gtid]; in __kmp_get_schedule()
2970 thr = __kmp_threads[gtid]; in __kmp_get_ancestor_thread_num()
3028 thr = __kmp_threads[gtid]; in __kmp_get_team_size()
3431 if (__kmp_threads != NULL) { in __kmp_print_structure()
3432 __kmp_printf(" %p", __kmp_threads[gtid]); in __kmp_print_structure()
3444 if (__kmp_threads != NULL) { in __kmp_print_structure()
3447 kmp_info_t const *thread = __kmp_threads[gtid]; in __kmp_print_structure()
3584 !__kmp_still_running((kmp_info_t *)TCR_SYNC_PTR(__kmp_threads[i])) && in __kmp_reclaim_dead_roots()
3673 KMP_MEMCPY(newThreads, __kmp_threads, in __kmp_expand_threads()
3681 node->threads = __kmp_threads; in __kmp_expand_threads()
3685 *(kmp_info_t * *volatile *)&__kmp_threads = newThreads; in __kmp_expand_threads()
3730 if (!initial_thread && TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_register_root()
3761 for (gtid = 1; TCR_PTR(__kmp_threads[gtid]) != NULL && in __kmp_register_root()
3773 if (initial_thread && TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_register_root()
3777 TCR_PTR(__kmp_threads[gtid]) != NULL; gtid++) in __kmp_register_root()
3871 TCW_SYNC_PTR(__kmp_threads[gtid], root_thread); in __kmp_register_root()
4107 KMP_DEBUG_ASSERT(__kmp_threads && __kmp_threads[gtid]); in __kmp_unregister_root_current_thread()
4109 KMP_ASSERT(root == __kmp_threads[gtid]->th.th_root); in __kmp_unregister_root_current_thread()
4114 kmp_info_t *thread = __kmp_threads[gtid]; in __kmp_unregister_root_current_thread()
4146 KMP_DEBUG_ASSERT(__kmp_threads && __kmp_threads[gtid]); in __kmp_unregister_root_other_thread()
4148 KMP_ASSERT(root == __kmp_threads[gtid]->th.th_root); in __kmp_unregister_root_other_thread()
4163 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_task_info()
4455 for (new_gtid = new_start_gtid; TCR_PTR(__kmp_threads[new_gtid]) != NULL; in __kmp_allocate_thread()
4468 TCW_SYNC_PTR(__kmp_threads[new_gtid], new_thr); in __kmp_allocate_thread()
5995 KMP_DEBUG_ASSERT(this_thr == __kmp_threads[gtid]); in __kmp_launch_thread()
6189 KMP_DEBUG_ASSERT(__kmp_threads[gtid] == thread); in __kmp_reap_thread()
6190 TCW_SYNC_PTR(__kmp_threads[gtid], NULL); in __kmp_reap_thread()
6366 kmp_info_t *thr = __kmp_threads[i]; in __kmp_internal_end()
6463 __kmp_itthash_clean(__kmp_threads[gtid]); in __kmp_internal_end_library()
6596 __kmp_threads[gtid]->th.th_task_team = NULL; in __kmp_internal_end_thread()
7169 __kmp_threads = (kmp_info_t **)__kmp_allocate(size); in __kmp_do_serial_initialize()
7170 __kmp_root = (kmp_root_t **)((char *)__kmp_threads + in __kmp_do_serial_initialize()
7332 kmp_info_t *thread = __kmp_threads[i]; in __kmp_do_middle_initialize()
7338 set__nproc(__kmp_threads[i], __kmp_dflt_team_nth); in __kmp_do_middle_initialize()
7521 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_invoke_task_func()
7615 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_teams_master()
7662 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_invoke_teams_master()
7665 if (!__kmp_threads[gtid]->th.th_team->t.t_serialized) in __kmp_invoke_teams_master()
7666 KMP_DEBUG_ASSERT((void *)__kmp_threads[gtid]->th.th_team->t.t_pkfn == in __kmp_invoke_teams_master()
7696 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_threads()
7769 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_teams()
7804 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_teams_51()
7859 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_proc_bind()
7866 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_internal_fork()
7909 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_internal_join()
7919 if (__kmp_threads[gtid] && in __kmp_internal_join()
7920 __kmp_threads[gtid]->th.th_team_nproc != team->t.t_nproc) { in __kmp_internal_join()
7922 __kmp_threads[gtid]); in __kmp_internal_join()
7925 gtid, __kmp_threads[gtid]->th.th_team_nproc, team, in __kmp_internal_join()
7929 KMP_DEBUG_ASSERT(__kmp_threads[gtid] && in __kmp_internal_join()
7930 __kmp_threads[gtid]->th.th_team_nproc == team->t.t_nproc); in __kmp_internal_join()
8115 __kmp_free(__kmp_threads); in __kmp_cleanup()
8118 __kmp_threads = NULL; in __kmp_cleanup()
8211 root = __kmp_threads[gtid]->th.th_root; in __kmp_internal_begin()
8237 thread = __kmp_threads[gtid]; in __kmp_user_set_library()
8616 th = __kmp_threads[gtid]; in __kmp_aux_capture_affinity()
8888 kmp_info_t *thread = __kmp_threads[gtid]; in __kmp_resume_if_soft_paused()
9084 __kmp_hidden_helper_main_thread = __kmp_threads[gtid]; in __kmp_hidden_helper_threads_initz_routine()
9085 __kmp_hidden_helper_threads = &__kmp_threads[gtid]; in __kmp_hidden_helper_threads_initz_routine()
9131 kmp_info_t *thread = __kmp_threads[__kmp_entry_gtid()]; in __kmp_set_nesting_mode_threads()