Lines Matching refs:__kmp_threads
147 other_threads = __kmp_threads; in __kmp_get_global_thread_id()
304 kmp_info_t *f_th = (kmp_info_t *)TCR_SYNC_PTR(__kmp_threads[f]); in __kmp_check_stack_overlap()
612 if (__kmp_threads[gtid]->th.th_root->r.r_active) in __kmp_parallel_deo()
638 if (__kmp_threads[gtid]->th.th_root->r.r_active) in __kmp_parallel_dxo()
666 th = __kmp_threads[gtid]; in __kmp_enter_single()
855 if (TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_reserve_threads()
1102 this_thr = __kmp_threads[global_tid]; in __kmp_serialized_parallel()
1388 master_th = __kmp_threads[gtid]; // AC: potentially unsafe, not in sync with in __kmp_fork_call()
2163 KMP_DEBUG_ASSERT(team == __kmp_threads[gtid]->th.th_team); in __kmp_fork_call()
2278 master_th = __kmp_threads[gtid]; in __kmp_join_call()
2626 thread = __kmp_threads[gtid]; in __kmp_set_num_threads()
2718 thread = __kmp_threads[gtid]; in __kmp_set_max_active_levels()
2732 thread = __kmp_threads[gtid]; in __kmp_get_max_active_levels()
2784 thread = __kmp_threads[gtid]; in __kmp_set_schedule()
2822 thread = __kmp_threads[gtid]; in __kmp_get_schedule()
2877 thr = __kmp_threads[gtid]; in __kmp_get_ancestor_thread_num()
2935 thr = __kmp_threads[gtid]; in __kmp_get_team_size()
3338 if (__kmp_threads != NULL) { in __kmp_print_structure()
3339 __kmp_printf(" %p", __kmp_threads[gtid]); in __kmp_print_structure()
3351 if (__kmp_threads != NULL) { in __kmp_print_structure()
3354 kmp_info_t const *thread = __kmp_threads[gtid]; in __kmp_print_structure()
3491 !__kmp_still_running((kmp_info_t *)TCR_SYNC_PTR(__kmp_threads[i])) && in __kmp_reclaim_dead_roots()
3580 KMP_MEMCPY(newThreads, __kmp_threads, in __kmp_expand_threads()
3585 kmp_info_t **temp_threads = __kmp_threads; in __kmp_expand_threads()
3586 *(kmp_info_t * *volatile *)&__kmp_threads = newThreads; in __kmp_expand_threads()
3632 if (!initial_thread && TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_register_root()
3663 for (gtid = 1; TCR_PTR(__kmp_threads[gtid]) != NULL && in __kmp_register_root()
3675 if (initial_thread && TCR_PTR(__kmp_threads[0]) == NULL) { in __kmp_register_root()
3679 TCR_PTR(__kmp_threads[gtid]) != NULL; gtid++) in __kmp_register_root()
3773 TCW_SYNC_PTR(__kmp_threads[gtid], root_thread); in __kmp_register_root()
4009 KMP_DEBUG_ASSERT(__kmp_threads && __kmp_threads[gtid]); in __kmp_unregister_root_current_thread()
4011 KMP_ASSERT(root == __kmp_threads[gtid]->th.th_root); in __kmp_unregister_root_current_thread()
4016 kmp_info_t *thread = __kmp_threads[gtid]; in __kmp_unregister_root_current_thread()
4047 KMP_DEBUG_ASSERT(__kmp_threads && __kmp_threads[gtid]); in __kmp_unregister_root_other_thread()
4049 KMP_ASSERT(root == __kmp_threads[gtid]->th.th_root); in __kmp_unregister_root_other_thread()
4064 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_task_info()
4351 for (new_gtid = new_start_gtid; TCR_PTR(__kmp_threads[new_gtid]) != NULL; in __kmp_allocate_thread()
4364 TCW_SYNC_PTR(__kmp_threads[new_gtid], new_thr); in __kmp_allocate_thread()
5807 KMP_DEBUG_ASSERT(this_thr == __kmp_threads[gtid]); in __kmp_launch_thread()
5994 KMP_DEBUG_ASSERT(__kmp_threads[gtid] == thread); in __kmp_reap_thread()
5995 TCW_SYNC_PTR(__kmp_threads[gtid], NULL); in __kmp_reap_thread()
6146 kmp_info_t *thr = __kmp_threads[i]; in __kmp_internal_end()
6375 __kmp_threads[gtid]->th.th_task_team = NULL; in __kmp_internal_end_thread()
6944 __kmp_threads = (kmp_info_t **)__kmp_allocate(size); in __kmp_do_serial_initialize()
6945 __kmp_root = (kmp_root_t **)((char *)__kmp_threads + in __kmp_do_serial_initialize()
7101 kmp_info_t *thread = __kmp_threads[i]; in __kmp_do_middle_initialize()
7107 set__nproc(__kmp_threads[i], __kmp_dflt_team_nth); in __kmp_do_middle_initialize()
7290 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_invoke_task_func()
7384 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_teams_master()
7431 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_invoke_teams_master()
7434 if (!__kmp_threads[gtid]->th.th_team->t.t_serialized) in __kmp_invoke_teams_master()
7435 KMP_DEBUG_ASSERT((void *)__kmp_threads[gtid]->th.th_team->t.t_pkfn == in __kmp_invoke_teams_master()
7465 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_threads()
7533 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_teams()
7564 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_num_teams_51()
7619 kmp_info_t *thr = __kmp_threads[gtid]; in __kmp_push_proc_bind()
7626 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_internal_fork()
7669 kmp_info_t *this_thr = __kmp_threads[gtid]; in __kmp_internal_join()
7679 if (__kmp_threads[gtid] && in __kmp_internal_join()
7680 __kmp_threads[gtid]->th.th_team_nproc != team->t.t_nproc) { in __kmp_internal_join()
7682 __kmp_threads[gtid]); in __kmp_internal_join()
7685 gtid, __kmp_threads[gtid]->th.th_team_nproc, team, in __kmp_internal_join()
7689 KMP_DEBUG_ASSERT(__kmp_threads[gtid] && in __kmp_internal_join()
7690 __kmp_threads[gtid]->th.th_team_nproc == team->t.t_nproc); in __kmp_internal_join()
7875 __kmp_free(__kmp_threads); in __kmp_cleanup()
7878 __kmp_threads = NULL; in __kmp_cleanup()
7962 root = __kmp_threads[gtid]->th.th_root; in __kmp_internal_begin()
7988 thread = __kmp_threads[gtid]; in __kmp_user_set_library()
8367 th = __kmp_threads[gtid]; in __kmp_aux_capture_affinity()
8638 kmp_info_t *thread = __kmp_threads[gtid]; in __kmp_resume_if_soft_paused()
8747 __kmp_hidden_helper_main_thread = __kmp_threads[gtid]; in __kmp_hidden_helper_threads_initz_routine()
8748 __kmp_hidden_helper_threads = &__kmp_threads[gtid]; in __kmp_hidden_helper_threads_initz_routine()
8794 kmp_info_t *thread = __kmp_threads[__kmp_entry_gtid()]; in __kmp_set_nesting_mode_threads()