Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/openmp/runtime/src/
H A Dz_Windows_NT_util.cpp416 th->th.th_active = FALSE; in __kmp_suspend_template()
428 __kmp_win32_cond_wait(&th->th.th_suspend_cv, &th->th.th_suspend_mx, th, in __kmp_suspend_template()
450 th->th.th_active = TRUE; in __kmp_suspend_template()
451 if (TCR_4(th->th.th_in_pool)) { in __kmp_suspend_template()
505 flag = (C *)th->th.th_sleep_loc; in __kmp_resume_template()
1148 th->th.th_info.ds.ds_gtid = gtid; in __kmp_create_worker()
1164 (LPVOID)th, th->th.th_info.ds.ds_thread)); in __kmp_create_worker()
1232 th->th.th_info.ds.ds_gtid = 0; in __kmp_create_monitor()
1364 th->th.th_info.ds.ds_gtid, th->th.th_info.ds.ds_thread)); in __kmp_reap_common()
1366 th->th.th_info.ds.ds_thread = 0; in __kmp_reap_common()
[all …]
H A Dkmp_runtime.cpp671 team = th->th.th_team; in __kmp_enter_single()
674 th->th.th_ident = id_ref; in __kmp_enter_single()
681 ++th->th.th_local.this_construct; in __kmp_enter_single()
3988 th->th.th_hot_teams = NULL; in __kmp_free_hot_teams()
4020 if (th->th.th_hot_teams) { in __kmp_reset_root()
4022 th->th.th_hot_teams = NULL; in __kmp_reset_root()
4795 th->th.th_new_place = place; in __kmp_partition_places()
4820 th->th.th_new_place = place; in __kmp_partition_places()
4934 f, th->th.th_new_place, th->th.th_first_place, in __kmp_partition_places()
4997 th->th.th_first_place, th->th.th_last_place, spacing)); in __kmp_partition_places()
[all …]
H A Dz_Linux_util.cpp716 th->th.th_info.ds.ds_gtid = gtid; in __kmp_create_worker()
822 th->th.th_info.ds.ds_thread = handle; in __kmp_create_worker()
855 th->th.th_info.ds.ds_gtid = 0; in __kmp_create_monitor()
1001 KMP_DEBUG_ASSERT(th->th.th_info.ds.ds_tid == th->th.th_info.ds.ds_gtid); in __kmp_reap_monitor()
1375 --th->th.th_suspend_init_count; in __kmp_suspend_uninitialize_thread()
1456 th->th.th_active = FALSE; in __kmp_suspend_template()
1530 th->th.th_active = TRUE; in __kmp_suspend_template()
1531 if (TCR_4(th->th.th_in_pool)) { in __kmp_suspend_template()
1539 TCW_PTR(th->th.th_sleep_loc, NULL); in __kmp_suspend_template()
1624 th->th.th_sleep_loc_type)); in __kmp_resume_template()
[all …]
H A Dkmp_alloc.cpp242 th->th.th_local.bget_data = data; in set_thr_data()
243 th->th.th_local.bget_list = 0; in set_thr_data()
246 __kmp_init_lock(&th->th.th_local.bget_lock); in set_thr_data()
280 __kmp_acquire_lock(&th->th.th_local.bget_lock, __kmp_gtid_from_thread(th)); in __kmp_bget_dequeue()
285 p = (void *)th->th.th_local.bget_list; in __kmp_bget_dequeue()
286 th->th.th_local.bget_list = 0; in __kmp_bget_dequeue()
289 __kmp_release_lock(&th->th.th_local.bget_lock, __kmp_gtid_from_thread(th)); in __kmp_bget_dequeue()
354 th->th.th_local.bget_list = (void *)buf; in __kmp_bget_enqueue()
1037 if (th->th.th_local.bget_data != NULL) { in __kmp_finalize_bget()
1038 __kmp_free(th->th.th_local.bget_data); in __kmp_finalize_bget()
[all …]
H A Dkmp_barrier.cpp237 team = this_thr->th.th_team; in __kmp_dist_barrier_gather()
252 this_thr->th.th_bar_arrive_time = this_thr->th.th_bar_min_time = in __kmp_dist_barrier_gather()
505 team = this_thr->th.th_team; in __kmp_dist_barrier_release()
573 this_thr->th.th_bar_arrive_time = this_thr->th.th_bar_min_time = in __kmp_linear_barrier_gather_template()
628 this_thr->th.th_bar_min_time, other_threads[i]->th.th_bar_min_time); in __kmp_linear_barrier_gather_template()
816 this_thr->th.th_bar_arrive_time = this_thr->th.th_bar_min_time = in __kmp_tree_barrier_gather()
848 this_thr->th.th_bar_min_time = KMP_MIN(this_thr->th.th_bar_min_time, in __kmp_tree_barrier_gather()
1029 this_thr->th.th_bar_arrive_time = this_thr->th.th_bar_min_time = in __kmp_hyper_barrier_gather()
1089 this_thr->th.th_bar_min_time = KMP_MIN(this_thr->th.th_bar_min_time, in __kmp_hyper_barrier_gather()
2184 team = this_thr->th.th_team; in __kmp_join_barrier()
[all …]
H A Dkmp_dispatch.cpp156 team = th->th.th_team; in __kmp_dispatch_init_algorithm()
842 team = th->th.th_team; in __kmp_dispatch_init()
844 th->th.th_ident = loc; in __kmp_dispatch_init()
863 &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()
1036 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish()
1099 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_finish_chunk()
1179 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next_algorithm()
2167 &th->th.th_team->t.t_dispatch[th->th.th_info.ds.ds_tid]); in __kmp_dispatch_next()
2319 team = th->th.th_team; in __kmpc_sections_init()
[all …]
H A Dkmp_wait_release.h720 __kmp_lock_suspend_mx(th);
727 th->th.th_active = FALSE;
728 if (th->th.th_active_in_pool) {
729 th->th.th_active_in_pool = FALSE;
751 TCW_PTR(th->th.th_sleep_loc, (void *)flag);
752 th->th.th_sleep_loc_type = flag->get_type();
769 TCW_PTR(th->th.th_sleep_loc, NULL);
770 th->th.th_sleep_loc_type = flag_unset;
773 th->th.th_active = TRUE;
774 if (TCR_4(th->th.th_in_pool)) {
[all …]
H A Dkmp_csupport.cpp3495 if (th->th.th_teams_microtask) { in __kmp_swap_teams_for_teams_reduction()
3496 *team_p = team = th->th.th_team; in __kmp_swap_teams_for_teams_reduction()
3503 th->th.th_team_nproc = th->th.th_team->t.t_nproc; in __kmp_swap_teams_for_teams_reduction()
3504 th->th.th_task_team = th->th.th_team->t.t_task_team[0]; in __kmp_swap_teams_for_teams_reduction()
3506 th->th.th_task_state = 0; in __kmp_swap_teams_for_teams_reduction()
3517 th->th.th_info.ds.ds_tid = 0; in __kmp_restore_swapped_teams()
3518 th->th.th_team = team; in __kmp_restore_swapped_teams()
4062 kmp_team_t *team = th->th.th_team; in __kmpc_doacross_init()
4185 kmp_team_t *team = th->th.th_team; in __kmpc_doacross_wait()
4196 pr_buf = th->th.th_dispatch; in __kmpc_doacross_wait()
[all …]
H A Dkmp_dispatch.h325 kmp_info_t *th = __kmp_threads[gtid]; in __kmp_dispatch_deo() local
326 KMP_DEBUG_ASSERT(th->th.th_dispatch); in __kmp_dispatch_deo()
331 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_deo()
341 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_deo()
344 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_deo()
349 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_deo()
402 KMP_DEBUG_ASSERT(th->th.th_dispatch); in __kmp_dispatch_dxo()
407 th->th.th_dispatch->th_dispatch_pr_current); in __kmp_dispatch_dxo()
413 if (!th->th.th_team->t.t_serialized) { in __kmp_dispatch_dxo()
416 th->th.th_dispatch->th_dispatch_sh_current); in __kmp_dispatch_dxo()
[all …]
H A Dompt-specific.h60 #define OMPT_CUR_TASK_INFO(thr) (&(thr->th.th_current_task->ompt_task_info))
62 (&(thr->th.th_current_task->ompt_task_info.task_data))
63 #define OMPT_CUR_TEAM_INFO(thr) (&(thr->th.th_team->t.ompt_team_info))
65 (&(thr->th.th_team->t.ompt_team_info.parallel_data))
73 void *return_address = thr->th.ompt_thread_info.return_address; in __ompt_load_return_address()
74 thr->th.ompt_thread_info.return_address = NULL; in __ompt_load_return_address()
88 __kmp_threads[gtid]->th.ompt_thread_info.return_address) \
118 thread->th.ompt_thread_info.state = state; in ompt_set_thread_state()
133 !__kmp_threads[Gtid]->th.ompt_thread_info.return_address) { in OmptReturnAddressGuard()
135 __kmp_threads[Gtid]->th.ompt_thread_info.return_address = ReturnAddress; in OmptReturnAddressGuard()
[all …]
H A Dompt-specific.cpp55 kmp_team *team = thr->th.th_team; in __ompt_get_teaminfo()
108 kmp_taskdata_t *taskdata = thr->th.th_current_task; in __ompt_get_task_info_object()
148 kmp_taskdata_t *taskdata = thr->th.th_current_task; in __ompt_get_scheduling_taskinfo()
201 return &(thread->th.ompt_thread_info.thread_data); in __ompt_get_thread_data_internal()
222 *omp_wait_id = ti->th.ompt_thread_info.wait_id; in __ompt_get_state_internal()
223 return ti->th.ompt_thread_info.state; in __ompt_get_state_internal()
273 thr->th.th_team->t.t_serialized > in __ompt_lw_taskteam_link()
288 thr->th.th_team->t.ompt_serialized_team_info; in __ompt_lw_taskteam_link()
458 kmp_taskdata_t *taskdata = thr->th.th_current_task; in __ompt_get_task_memory_internal()
512 if (!thr->th.th_ident) in __ompt_get_barrier_kind()
[all …]
/llvm-project-15.0.7/openmp/runtime/test/tasking/
H A Domp50_task_depend_mtx3.c32 int th = omp_get_thread_num(); in mutex_task() local
35 printf("task %d, th %d\n", task_id, th); in mutex_task()
60 { int th = omp_get_thread_num(); in main() local
61 printf("task 0_%d, th %d\n", t, th); in main()
64 { int th = omp_get_thread_num(); in main() local
65 printf("task 1_%d, th %d\n", t, th); in main()
68 { int th = omp_get_thread_num(); in main() local
72 { int th = omp_get_thread_num(); in main() local
76 { int th = omp_get_thread_num(); in main() local
80 { int th = omp_get_thread_num(); in main() local
[all …]
H A Domp50_task_depend_mtx2.c52 int th = omp_get_thread_num(); in thunk() local
55 printf("task __%d, th %d\n", t, th); in thunk()
99 { int th = omp_get_thread_num(); in main() local
100 printf("task 0_%d, th %d\n", t, th); in main()
103 { int th = omp_get_thread_num(); in main() local
104 printf("task 1_%d, th %d\n", t, th); in main()
107 { int th = omp_get_thread_num(); in main() local
111 { int th = omp_get_thread_num(); in main() local
115 { int th = omp_get_thread_num(); in main() local
119 { int th = omp_get_thread_num(); in main() local
[all …]
H A Domp50_task_depend_mtx.c52 int th = omp_get_thread_num(); in thunk() local
55 printf("task __%d, th %d\n", t, th); in thunk()
99 { int th = omp_get_thread_num(); in main() local
100 printf("task 0_%d, th %d\n", t, th); in main()
103 { int th = omp_get_thread_num(); in main() local
104 printf("task 1_%d, th %d\n", t, th); in main()
107 { int th = omp_get_thread_num(); in main() local
111 { int th = omp_get_thread_num(); in main() local
115 { int th = omp_get_thread_num(); in main() local
119 { int th = omp_get_thread_num(); in main() local
[all …]
H A Dkmp_taskwait_depend_all.c75 int lcheck, th; in thunk_m() local
78 th = omp_get_thread_num(); in thunk_m()
97 int lcheck, th; in thunk_s() local
100 th = omp_get_thread_num(); in thunk_s()
169 int lcheck, th; in main() local
172 th = omp_get_thread_num(); in main()
191 int lcheck, th; in main() local
194 th = omp_get_thread_num(); in main()
235 int lcheck, th; in main() local
256 int lcheck, th; in main() local
[all …]
H A Dkmp_task_depend_all.c69 int lcheck, th; in thunk_m() local
72 th = omp_get_thread_num(); in thunk_m()
91 int lcheck, th; in thunk_s() local
94 th = omp_get_thread_num(); in thunk_s()
142 int lcheck, th; in main() local
145 th = omp_get_thread_num(); in main()
164 int lcheck, th; in main() local
167 th = omp_get_thread_num(); in main()
208 int lcheck, th; in main() local
229 int lcheck, th; in main() local
[all …]
H A Domp_task_priority2.c24 int th = omp_get_thread_num(); in main() local
25 if (th == 0) // primary thread in main()
32 printf("P1: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
40 printf("P2: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
48 printf("P0exp: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
56 printf("P0imp: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
72 int th = omp_get_thread_num(); in main() local
73 if (th == 0) // primary thread in main()
80 printf("P1: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
88 printf("P2: val = %d, thread gen %d, thread exe %d\n", val, th, t); in main()
[all …]
H A Domp51_task_dep_inoutset.c65 int th = omp_get_thread_num(); in thunk_m() local
84 int th = omp_get_thread_num(); in thunk_s() local
132 { int th = omp_get_thread_num(); in main() local
133 printf("task 0_%d, th %d\n", t, th); in main()
149 { int th = omp_get_thread_num(); in main() local
150 printf("task 1_%d, th %d\n", t, th); in main()
184 { int th = omp_get_thread_num(); in main() local
185 printf("task 4_%d, th %d\n", t, th); in main()
201 { int th = omp_get_thread_num(); in main() local
202 printf("task 5_%d, th %d\n", t, th); in main()
[all …]
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dbench_threads.cpp16 pthread_t th; in thread() local
17 pthread_create(&th, nullptr, nop_thread, nullptr); in thread()
18 pthread_join(th, nullptr); in thread()
28 pthread_t th[kBatch]; in bench() local
30 pthread_create(&th[j], nullptr, nop_thread, nullptr); in bench()
32 pthread_join(th[j], nullptr); in bench()
36 pthread_t th[kLiveThreads]; in bench() local
38 pthread_create(&th[j], nullptr, nop_thread, nullptr); in bench()
42 pthread_join(th[j], nullptr); in bench()
H A Dmmap_stress.cpp28 pthread_t th[4]; in Worker1() local
30 if (pthread_create(&th[i], 0, SubWorker, 0)) in Worker1()
34 if (pthread_join(th[i], 0)) in Worker1()
42 pthread_t th[4]; in Worker() local
44 if (pthread_create(&th[i], 0, Worker1, 0)) in Worker()
48 if (pthread_join(th[i], 0)) in Worker()
55 pthread_t th[4]; in main() local
57 if (pthread_create(&th[i], 0, Worker, 0)) in main()
61 if (pthread_join(th[i], 0)) in main()
H A Dpthread_key.cpp28 pthread_t th; in main() local
29 pthread_create(&th, 0, thr, 0); in main()
30 pthread_join(th, 0); in main()
32 pthread_t th[2]; in main() local
33 pthread_create(&th[0], 0, thr, 0); in main()
34 pthread_create(&th[1], 0, thr, 0); in main()
35 pthread_join(th[0], 0); in main()
36 pthread_join(th[1], 0); in main()
/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_posix.cpp59 pthread_t th[3]; in TEST() local
63 EXPECT_EQ(__interceptor_pthread_create(&th[0], 0, dtors_thread, &k1), 0); in TEST()
65 EXPECT_EQ(__interceptor_pthread_join(th[0], 0), 0); in TEST()
67 EXPECT_EQ(__interceptor_pthread_join(th[1], 0), 0); in TEST()
68 EXPECT_EQ(__interceptor_pthread_join(th[2], 0), 0); in TEST()
82 pthread_t th[kThreads]; in local_thread() local
84 EXPECT_EQ(__interceptor_pthread_create(&th[i], 0, local_thread, in local_thread()
88 EXPECT_EQ(__interceptor_pthread_join(th[i], 0), 0); in local_thread()
137 pthread_t th; in TEST() local
138 EXPECT_EQ(__interceptor_pthread_create(&th, 0, cond_thread, &ctx), 0); in TEST()
[all …]
/llvm-project-15.0.7/libc/test/integration/src/__support/threads/
H A Dthread_detach_test.cpp23 __llvm_libc::Thread th; in detach_simple_test() local
24 th.run(func, nullptr, nullptr, 0); in detach_simple_test()
29 ASSERT_EQ(th.detach(), int(__llvm_libc::DetachType::SIMPLE)); in detach_simple_test()
37 __llvm_libc::Thread th; in detach_cleanup_test() local
38 ASSERT_EQ(0, th.run(func, nullptr, nullptr, 0)); in detach_cleanup_test()
46 th.wait(); in detach_cleanup_test()
50 ASSERT_EQ(th.detach(), int(__llvm_libc::DetachType::CLEANUP)); in detach_cleanup_test()
/llvm-project-15.0.7/openmp/libompd/src/
H A Domp-debug.cpp221 (*thread_handle)->th = taddr; in ompd_get_thread_in_parallel()
249 *cmp_value = thread_handle_1->th.address - thread_handle_2->th.address; in ompd_thread_handle_compare()
440 if (parallel_handle_1->th.address - parallel_handle_2->th.address) in ompd_parallel_handle_compare()
442 parallel_handle_1->th.address - parallel_handle_2->th.address; in ompd_parallel_handle_compare()
447 *cmp_value = parallel_handle_1->th.address - parallel_handle_2->th.address; in ompd_parallel_handle_compare()
505 (*task_handle)->th = taddr; in ompd_get_curr_task_handle()
660 (*task_handle)->th = taddr; in ompd_get_task_in_parallel()
688 if (task_handle_1->th.address - task_handle_2->th.address) in ompd_task_handle_compare()
689 *cmp_value = task_handle_1->th.address - task_handle_2->th.address; in ompd_task_handle_compare()
733 ret = th.getAddress(&taddr); in ompd_get_thread_handle()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A D2008-09-18-inline-asm-2.ll5 ; The 1st, 2nd, 3rd and 5th registers must all be different. The registers
6 ; referenced in the 4th and 6th operands must not be the same as the 1st or 5th
18 ; CHECK: 5th=[[A5:%...]]
21 ; CHECK: =4th
23 ; The 6th operand is an 8-bit register, and it mustn't alias the 1st and 5th.
41 …32, i32 } asm sideeffect "#1st=$0 $1 2nd=$1 $2 3rd=$2 $4 5th=$4 $3=4th 1$0 1%eXx 5$4 5%eXx 6th=$5"…

12345678910>>...12