Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/openmp/runtime/test/api/
H A Domp_pause_resource.c10 int fails, nthreads, my_dev; in test_omp_pause_resource() local
13 nthreads = 0; in test_omp_pause_resource()
18 nthreads = omp_get_num_threads(); in test_omp_pause_resource()
23 #pragma omp parallel shared(nthreads) in test_omp_pause_resource()
25 nthreads = omp_get_num_threads(); in test_omp_pause_resource()
27 if (nthreads == 0) in test_omp_pause_resource()
31 nthreads = 0; in test_omp_pause_resource()
35 nthreads = omp_get_num_threads(); in test_omp_pause_resource()
37 if (nthreads == 0) in test_omp_pause_resource()
41 nthreads = 0; in test_omp_pause_resource()
[all …]
H A Dkmp_set_defaults_lock_bug.c15 int nthreads = 0; in test_kmp_set_defaults_lock_bug() local
22 nthreads++; in test_kmp_set_defaults_lock_bug()
33 nthreads++; in test_kmp_set_defaults_lock_bug()
37 return (nthreads == 2*nthreads_lib); in test_kmp_set_defaults_lock_bug()
H A Domp_get_num_threads.c10 int nthreads = 0; in test_omp_get_num_threads() local
18 nthreads++; in test_omp_get_num_threads()
25 return (nthreads == nthreads_lib); in test_omp_get_num_threads()
/llvm-project-15.0.7/openmp/runtime/test/worksharing/for/
H A Domp_for_static_large_chunk.c26 int i, j, lb, ub, stride, nthreads, chunk; in main() local
39 nthreads = omp_get_max_threads(); in main()
55 int *iters = (int *)malloc(sizeof(int) * nthreads * num_iters); in main()
57 int *final_iters = (int *)malloc(sizeof(int) * nthreads * num_iters); in main()
58 for (i = 0; i < nthreads * num_iters; ++i) { in main()
63 #pragma omp parallel num_threads(nthreads) in main()
76 for (i = 0, j = 0; i < nthreads * num_iters; ++i) { in main()
H A Domp_for_dynamic_large_chunk.c14 int i, j, lb, ub, stride, nthreads, actual_nthreads, chunk; in main() local
27 nthreads = omp_get_max_threads(); in main()
43 #pragma omp parallel num_threads(nthreads) in main()
48 if (actual_nthreads != nthreads) { in main()
59 if (actual_nthreads == nthreads && counted_iters != num_iters) { in main()
H A Dkmp_sch_simd_runtime_guided.c77 int nthreads = omp_get_num_threads(); in run_loop() local
148 if (last && !no_chunk && cur > ch && nthreads > 1) in run_loop()
H A Dkmp_sch_simd_runtime_static.c71 int nthreads = omp_get_num_threads(); in run_loop() local
140 if (!no_chunk && cur > ch && nthreads > 1) in run_loop()
H A Dkmp_sch_simd_runtime_api.c69 int nthreads = omp_get_num_threads(); in run_loop() local
138 if (!no_chunk && cur > ch && nthreads > 1) in run_loop()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dhalt_on_error-torture.cpp24 size_t nthreads = 10; variable
55 nthreads = (size_t)strtoul(argv[1], 0, 0); in main()
58 pthread_t *tids = new pthread_t[nthreads]; in main()
60 for (size_t i = 0; i < nthreads; ++i) { in main()
67 for (size_t i = 0; i < nthreads; ++i) { in main()
/llvm-project-15.0.7/openmp/runtime/test/master/
H A Domp_master.c7 int nthreads; in test_omp_master() local
10 nthreads = 0; in test_omp_master()
19 nthreads++; in test_omp_master()
24 return ((nthreads == 1) && (executing_thread == 0)); in test_omp_master()
H A Domp_master_3.c7 int nthreads; in test_omp_master_3() local
11 nthreads = 0; in test_omp_master_3()
25 nthreads++; in test_omp_master_3()
30 return ((nthreads == 1) && (executing_thread == 0) && (tid_result == 0)); in test_omp_master_3()
/llvm-project-15.0.7/openmp/runtime/test/parallel/
H A Domp_parallel_num_threads.c9 int nthreads; in test_omp_parallel_num_threads() local
23 nthreads = 0; in test_omp_parallel_num_threads()
28 nthreads += 1; in test_omp_parallel_num_threads()
30 num_failed = num_failed + !(nthreads == threads); in test_omp_parallel_num_threads()
/llvm-project-15.0.7/openmp/runtime/test/teams/
H A Dkmp_num_teams.c31 int nteams, nthreads; in check_num_teams() local
51 nthreads = omp_get_num_threads(); in check_num_teams()
70 if (a != nteams * nthreads) { in check_num_teams()
72 nteams * nthreads); in check_num_teams()
75 printf("#teams %d, #threads %d: Hello!\n", nteams, nthreads); in check_num_teams()
H A Dteams.c29 int nthreads = omp_get_num_threads(); in main() local
30 if (nthreads != NUM_THREADS_PER_TEAM) { in main()
32 nthreads, NUM_THREADS_PER_TEAM); in main()
35 if (tid < 0 || tid >= nthreads) { in main()
/llvm-project-15.0.7/lldb/test/API/commands/process/attach-resume/
H A Dmain.cpp26 static const size_t nthreads = 16; in main() local
27 std::thread threads[nthreads]; in main()
30 for (i=0; i<nthreads; i++) in main()
33 for (i=0; i<nthreads; i++) in main()
/llvm-project-15.0.7/openmp/runtime/test/tasking/
H A Dkmp_task_reduction_nest.cpp152 int nthreads = omp_get_max_threads(); in main() local
154 void** ptrs = (void**)malloc(nthreads*sizeof(void*)); in main()
172 for (int i = 0; i < nthreads; ++i) in main()
296 if (ptrs[nthreads-1]) { in main()
297 addr2 = __kmpc_task_reduction_get_th_data(gtid, NULL, ptrs[nthreads-1]); in main()
/llvm-project-15.0.7/openmp/runtime/test/
H A Domp_testsuite.h37 static void go_parallel_nthreads(int nthreads) { in go_parallel_nthreads() argument
39 #pragma omp parallel num_threads(nthreads) in go_parallel_nthreads()
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_tasking.cpp3183 nthreads = task_team->tt.tt_nproc; in __kmp_execute_tasks_template()
3368 if (nthreads == 1 && in __kmp_execute_tasks_template()
3449 int nthreads, i, is_init_thread; in __kmp_enable_tasking() local
3457 nthreads = task_team->tt.tt_nproc; in __kmp_enable_tasking()
3458 KMP_DEBUG_ASSERT(nthreads > 0); in __kmp_enable_tasking()
3480 for (i = 0; i < nthreads; i++) { in __kmp_enable_tasking()
3606 kmp_int32 nthreads, maxthreads; in __kmp_realloc_task_threads_data() local
3615 nthreads = task_team->tt.tt_nproc; in __kmp_realloc_task_threads_data()
3629 if (maxthreads < nthreads) { in __kmp_realloc_task_threads_data()
3745 int nthreads; in __kmp_allocate_task_team() local
[all …]
H A Dkmp_runtime.cpp1367 int nthreads; in __kmp_fork_call() local
1701 nthreads = 1; in __kmp_fork_call()
1705 nthreads = master_set_numthreads in __kmp_fork_call()
1712 if (nthreads > 1) { in __kmp_fork_call()
1719 nthreads = 1; in __kmp_fork_call()
1722 if (nthreads > 1) { in __kmp_fork_call()
1731 if (nthreads == 1) { in __kmp_fork_call()
1739 KMP_DEBUG_ASSERT(nthreads > 0); in __kmp_fork_call()
1745 if (nthreads == 1) { in __kmp_fork_call()
2046 team = __kmp_allocate_team(root, nthreads, nthreads, in __kmp_fork_call()
[all …]
H A Dkmp_gsupport.cpp2008 int nthreads, in __kmp_GOMP_taskgroup_reduction_register() argument
2011 KMP_ASSERT(nthreads > 0); in __kmp_GOMP_taskgroup_reduction_register()
2018 data[2] = (uintptr_t)__kmp_allocate(nthreads * data[1]); in __kmp_GOMP_taskgroup_reduction_register()
2019 data[6] = data[2] + (nthreads * data[1]); in __kmp_GOMP_taskgroup_reduction_register()
2031 int nthreads = thread->th.th_team_nproc; in KMP_EXPAND_NAME() local
2032 __kmp_GOMP_taskgroup_reduction_register(data, tg, nthreads); in KMP_EXPAND_NAME()
H A Dkmp_affinity.cpp4912 void __kmp_balanced_affinity(kmp_info_t *th, int nthreads) { in __kmp_balanced_affinity() argument
4950 int chunk = nthreads / ncores; in __kmp_balanced_affinity()
4952 int big_cores = nthreads % ncores; in __kmp_balanced_affinity()
5000 if (nthreads == __kmp_avail_proc) { in __kmp_balanced_affinity()
5015 } else if (nthreads <= ncores) { in __kmp_balanced_affinity()
5086 int nth = nthreads; in __kmp_balanced_affinity()
/llvm-project-15.0.7/openmp/runtime/test/tasking/hidden_helper_task/
H A Dcapacity_mix_threads.cpp13 int nthreads = omp_get_max_threads(); in dummy_root() local
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest-port.cc209 int nthreads = 0; in GetThreadCount() local
212 nthreads++; in GetThreadCount()
214 return nthreads; in GetThreadCount()
/llvm-project-15.0.7/llvm/test/Transforms/OpenMP/
H A Dicv_remarks.ll15 ; CHECK-DAG: remark: icv_remarks.c:12:0: OpenMP ICV nthreads Value: IMPLEMENTATION_DEFINED
40 ; CHECK-DAG: remark: icv_remarks.c:18:0: OpenMP ICV nthreads Value: IMPLEMENTATION_DEFINED
/llvm-project-15.0.7/flang/module/
H A Domp_lib.h118 subroutine omp_set_num_threads(nthreads) bind(c)
120 integer(kind=omp_integer_kind), value :: nthreads

12