Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 25 of 113) sorted by relevance

12345

/external/clang/test/OpenMP/
Dparallel_num_threads_messages.cpp12 #define redef_num_threads(a, b) num_threads(a)
16 #pragma omp parallel num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain()
17 …#pragma omp parallel num_threads ( // expected-error {{expected expression}} expected-error {{expe… in tmain()
18 #pragma omp parallel num_threads () // expected-error {{expected expression}} in tmain()
19 …#pragma omp parallel num_threads (argc // expected-error {{expected ')'}} expected-note {{to match… in tmain()
20 …#pragma omp parallel num_threads (argc)) // expected-warning {{extra tokens at the end of '#pragma… in tmain()
21 …#pragma omp parallel num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{expression… in tmain()
22 …#pragma omp parallel num_threads (foobool(argc)), num_threads (true), num_threads (-5) // expected… in tmain()
23 #pragma omp parallel num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain()
24 …#pragma omp parallel num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to… in tmain()
[all …]
Dparallel_sections_num_threads_messages.cpp14 #pragma omp parallel sections num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain()
16 …#pragma omp parallel sections num_threads ( // expected-error {{expected expression}} expected-err… in tmain()
18 #pragma omp parallel sections num_threads () // expected-error {{expected expression}} in tmain()
20 …#pragma omp parallel sections num_threads (argc // expected-error {{expected ')'}} expected-note {… in tmain()
22 …#pragma omp parallel sections num_threads (argc)) // expected-warning {{extra tokens at the end of… in tmain()
24 …#pragma omp parallel sections num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{e… in tmain()
26 …#pragma omp parallel sections num_threads (foobool(argc)), num_threads (true), num_threads (-5) //… in tmain()
28 #pragma omp parallel sections num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain()
30 …#pragma omp parallel sections num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-… in tmain()
32 #pragma omp parallel sections num_threads (argc) in tmain()
[all …]
Dparallel_for_num_threads_messages.cpp15 #pragma omp parallel for num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain()
17 …#pragma omp parallel for num_threads ( // expected-error {{expected expression}} expected-error {{… in tmain()
19 #pragma omp parallel for num_threads () // expected-error {{expected expression}} in tmain()
21 …#pragma omp parallel for num_threads (argc // expected-error {{expected ')'}} expected-note {{to m… in tmain()
23 …#pragma omp parallel for num_threads (argc)) // expected-warning {{extra tokens at the end of '#pr… in tmain()
25 …#pragma omp parallel for num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{expres… in tmain()
27 …#pragma omp parallel for num_threads (foobool(argc)), num_threads (true), num_threads (-5) // expe… in tmain()
29 #pragma omp parallel for num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain()
31 …#pragma omp parallel for num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-note … in tmain()
33 #pragma omp parallel for num_threads (argc) in tmain()
[all …]
Dparallel_for_simd_num_threads_messages.cpp15 #pragma omp parallel for simd num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain()
17 …#pragma omp parallel for simd num_threads ( // expected-error {{expected expression}} expected-err… in tmain()
19 #pragma omp parallel for simd num_threads () // expected-error {{expected expression}} in tmain()
21 …#pragma omp parallel for simd num_threads (argc // expected-error {{expected ')'}} expected-note {… in tmain()
23 …#pragma omp parallel for simd num_threads (argc)) // expected-warning {{extra tokens at the end of… in tmain()
25 …#pragma omp parallel for simd num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{e… in tmain()
27 …#pragma omp parallel for simd num_threads (foobool(argc)), num_threads (true), num_threads (-5) //… in tmain()
29 #pragma omp parallel for simd num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain()
31 …#pragma omp parallel for simd num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-… in tmain()
33 #pragma omp parallel for simd num_threads (argc) in tmain()
[all …]
Dparallel_num_threads_codegen.cpp26 #pragma omp parallel num_threads(C) in tmain()
28 #pragma omp parallel num_threads(T(23)) in tmain()
36 #pragma omp parallel num_threads(2) in main()
38 #pragma omp parallel num_threads(a) in main()
Dparallel_ast_print.cpp39 …, private(argc,b) firstprivate(argv) shared (d) if (parallel:argc > 0) num_threads(C) copyin(S<T>:… in tmain()
41 #pragma omp parallel if (C) num_threads(s) proc_bind(close) reduction(^:e, f, arr[0:C][:argc]) redu… in tmain()
94 …ault(none), private(argc,b) firstprivate(argv) if (parallel: argc > 0) num_threads(ee) copyin(a) p… in main()
100 #pragma omp parallel if (b) num_threads(c) proc_bind(close) reduction(^:e, f) reduction(&& : g, arr… in main()
/external/compiler-rt/test/lsan/TestCases/
Dhigh_allocator_contention.cc10 int num_threads; variable
23 for (int i = 0; i < total_num_alloc / num_threads; i++) { in thread_fun()
33 num_threads = atoi(argv[1]); in main()
34 assert(num_threads > 0); in main()
35 assert(num_threads <= kMaxNumThreads); in main()
38 printf("%d threads, %d allocations in each\n", num_threads, in main()
39 total_num_alloc / num_threads); in main()
40 for (int i = 0; i < num_threads; i++) in main()
46 for (int i = 0; i < num_threads; i++) pthread_join(tid[i], 0); in main()
/external/autotest/client/tests/monotonic_time/src/
Dthreads.c27 static int num_threads; variable
61 if (num_threads >= MAX_THREADS) in create_per_cpu_threads()
64 thread = &threads[num_threads++]; in create_per_cpu_threads()
73 --num_threads; in create_per_cpu_threads()
78 return num_threads; in create_per_cpu_threads()
95 thread = &threads[num_threads++]; in create_threads()
103 --num_threads; in create_threads()
108 return num_threads; in create_threads()
117 while (num_threads > 0) in join_threads()
118 pthread_join(threads[--num_threads].thread, NULL); in join_threads()
/external/libvpx/libvpx/test/
Dvp9_skip_loopfilter_test.cc40 void Init(int num_threads) { in Init() argument
49 if (num_threads > 0) in Init()
50 cfg.threads = num_threads; in Init()
128 const int num_threads = 0; in TEST() local
130 skip_loop_filter.Init(num_threads); in TEST()
138 const int num_threads = 1; in TEST() local
140 skip_loop_filter.Init(num_threads); in TEST()
148 const int num_threads = 8; in TEST() local
150 skip_loop_filter.Init(num_threads); in TEST()
158 const int num_threads = 0; in TEST() local
[all …]
/external/gemmlowp/test/
Dtest_blocking_counter.cc61 void test_blocking_counter(BlockingCounter* blocking_counter, int num_threads, in test_blocking_counter() argument
66 for (int i = 0; i < num_threads; i++) { in test_blocking_counter()
72 for (int i = 0; i < num_threads; i++) { in test_blocking_counter()
87 for (int num_threads = 1; num_threads <= 16; num_threads++) { in test_blocking_counter() local
91 test_blocking_counter(blocking_counter, num_threads, in test_blocking_counter()
93 num_threads * num_decrements_per_thread); in test_blocking_counter()
/external/libxml2/
DtestThreads.c100 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); in main() local
108 memset(results, 0, sizeof(*results)*num_threads); in main()
109 memset(tid, 0xff, sizeof(*tid)*num_threads); in main()
111 for (i = 0; i < num_threads; i++) { in main()
119 for (i = 0; i < num_threads; i++) { in main()
128 for (i = 0; i < num_threads; i++) in main()
141 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); in main() local
151 for (i = 0; i < num_threads; i++) { in main()
156 for (i = 0; i < num_threads; i++) { in main()
164 for (i = 0; i < num_threads; i++) { in main()
[all …]
DtestThreadsWin32.c89 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); in main() local
98 for (i = 0; i < num_threads; i++) in main()
104 for (i = 0; i < num_threads; i++) in main()
116 if (WaitForMultipleObjects (num_threads, tid, TRUE, INFINITE) == WAIT_FAILED) in main()
119 for (i = 0; i < num_threads; i++) in main()
131 for (i = 0; i < num_threads; i++) { in main()
/external/google-breakpad/src/common/linux/tests/
Dcrash_generator.cc172 unsigned num_threads, unsigned crash_thread, int crash_signal, in CreateChildCrash() argument
174 if (num_threads == 0 || crash_thread >= num_threads) { in CreateChildCrash()
176 " crash_thread=%u\n", num_threads, crash_thread); in CreateChildCrash()
180 if (!MapSharedMemory(num_threads * sizeof(pid_t))) { in CreateChildCrash()
192 CreateThreadsInChildProcess(num_threads); in CreateChildCrash()
275 void CrashGenerator::CreateThreadsInChildProcess(unsigned num_threads) { in CreateThreadsInChildProcess() argument
278 if (num_threads <= 1) in CreateThreadsInChildProcess()
283 ThreadData* thread_data = new ThreadData[num_threads]; in CreateThreadsInChildProcess()
296 if (pthread_barrier_init(&thread_barrier, NULL, num_threads) != 0) { in CreateThreadsInChildProcess()
301 for (unsigned i = 1; i < num_threads; ++i) { in CreateThreadsInChildProcess()
/external/strace/test/
Dmany_looping_threads.c34 int num_threads = 1; in main() local
37 num_threads = atoi(argv[1]); in main()
39 thd = malloc(num_threads * sizeof(thd[0])); in main()
40 dprintf(1, "test start, num_threads:%d...\n", num_threads); in main()
42 for (i = 0; i < num_threads; i++) { in main()
/external/ceres-solver/internal/ceres/
Dprogram_evaluator.h117 jacobian_writer_.CreateEvaluatePreparers(options.num_threads)) { in ProgramEvaluator()
119 CHECK_EQ(1, options_.num_threads) in ProgramEvaluator()
126 options.num_threads)); in ProgramEvaluator()
160 for (int i = 0; i < options_.num_threads; ++i) { in Evaluate()
173 #pragma omp parallel for num_threads(options_.num_threads) in Evaluate()
263 for (int i = 0; i < options_.num_threads; ++i) { in Evaluate()
348 int num_threads) { in CreateEvaluatorScratch() argument
357 EvaluateScratch* evaluate_scratch = new EvaluateScratch[num_threads]; in CreateEvaluatorScratch()
358 for (int i = 0; i < num_threads; i++) { in CreateEvaluatorScratch()
Dscratch_evaluate_preparer.cc42 int num_threads) { in Create() argument
43 ScratchEvaluatePreparer* preparers = new ScratchEvaluatePreparer[num_threads]; in Create()
46 for (int i = 0; i < num_threads; i++) { in Create()
Dcoordinate_descent_minimizer.cc116 evaluator_options_.num_threads = 1; in Init()
133 new LinearSolver*[options.num_threads]); in Minimize()
138 for (int i = 0; i < options.num_threads; ++i) { in Minimize()
151 #pragma omp parallel for num_threads(options.num_threads) in Minimize()
197 for (int i = 0; i < options.num_threads; ++i) { in Minimize()
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_perfdiag.py62 def _run_throughput_test(self, test_name, num_processes, num_threads, argument
66 cmd = ['perfdiag', '-n', str(num_processes * num_threads),
67 '-s', '1024', '-c', str(num_processes), '-k', str(num_threads),
79 num_threads): argument
80 self._run_throughput_test(test_name, num_processes, num_threads, 'fan')
82 self._run_throughput_test(test_name, num_processes, num_threads, 'slice')
83 self._run_throughput_test(test_name, num_processes, num_threads, 'both')
/external/valgrind/drd/tests/
Domp_printf.c27 int num_threads = 2; in main() local
36 case 't': num_threads = atoi(optarg); break; in main()
47 assert(num_threads > 0); in main()
49 omp_set_num_threads(num_threads); in main()
Domp_prime.c42 int num_threads = 2; in main() local
55 num_threads = atoi(optarg); in main()
76 assert(num_threads >= 1); in main()
81 omp_set_num_threads(num_threads); in main()
/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_dumper_unittest_helper.cc80 int num_threads = atoi(argv[2]); in main() local
81 if (num_threads < 1) { in main()
85 google_breakpad::scoped_array<pthread_t> threads(new pthread_t[num_threads]); in main()
89 for (int i = 1; i < num_threads; i++) { in main()
/external/autotest/client/tests/sysbench/
Dsysbench.py32 num_threads = utils.count_cpus(), max_time = 60, \ argument
53 self.execute_pgsql(build, num_threads, max_time, read_only, args)
55 self.execute_mysql(build, num_threads, max_time, read_only, args)
58 def execute_pgsql(self, build, num_threads, max_time, read_only, args): argument
86 ' --num-threads=' + str(num_threads) + \
103 def execute_mysql(self, build, num_threads, max_time, read_only, args): argument
131 ' --num-threads=' + str(num_threads) + \
/external/autotest/client/tests/signaltest/src/
Dsignaltest.c223 static int num_threads = 2; variable
255 case 't': num_threads = atoi(optarg); break; in process_options()
264 if (num_threads < 2) in process_options()
337 par = calloc(num_threads, sizeof(struct thread_param)); in main()
340 stat = calloc(num_threads, sizeof(struct thread_stat)); in main()
344 for (i = 0; i < num_threads; i++) { in main()
371 for (i = 0; i < num_threads; i++) { in main()
378 for (i = 0; i < num_threads - 1; i++) in main()
413 for (i = 0; i < num_threads; i++) { in main()
/external/autotest/client/tests/aiostress/
Daio-stress.c100 int num_threads = 1; variable
994 int setup_shared_mem(int num_threads, int num_files, int depth, argument
1002 total_ram = num_files * depth * padded_reclen + num_threads;
1069 for (i = 0 ; i < num_threads ; i++) {
1106 if (num_threads > 1) {
1109 if (threads_starting == num_threads) {
1114 while (threads_starting != num_threads)
1178 if (num_threads > 1) {
1181 if (threads_ending == num_threads) {
1186 while(threads_ending != num_threads)
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c487 screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0; in llvmpipe_create_screen()
489 screen->num_threads = 0; in llvmpipe_create_screen()
491 screen->num_threads = debug_get_num_option("LP_NUM_THREADS", screen->num_threads); in llvmpipe_create_screen()
492 screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS); in llvmpipe_create_screen()
494 screen->rast = lp_rast_create(screen->num_threads); in llvmpipe_create_screen()

12345