/external/clang/test/OpenMP/ |
D | parallel_num_threads_messages.cpp | 14 #pragma omp parallel num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain() 15 …#pragma omp parallel num_threads ( // expected-error {{expected expression}} expected-error {{expe… in tmain() 16 #pragma omp parallel num_threads () // expected-error {{expected expression}} in tmain() 17 …#pragma omp parallel num_threads (argc // expected-error {{expected ')'}} expected-note {{to match… in tmain() 18 …#pragma omp parallel num_threads (argc)) // expected-warning {{extra tokens at the end of '#pragma… in tmain() 19 …#pragma omp parallel num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{expression… in tmain() 20 …#pragma omp parallel num_threads (foobool(argc)), num_threads (true), num_threads (-5) // expected… in tmain() 21 #pragma omp parallel num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain() 22 …#pragma omp parallel num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to… in tmain() 23 #pragma omp parallel num_threads (argc) in tmain() [all …]
|
D | parallel_sections_num_threads_messages.cpp | 14 #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 …]
|
D | parallel_for_num_threads_messages.cpp | 15 #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 …]
|
D | parallel_for_simd_num_threads_messages.cpp | 15 #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 …]
|
D | parallel_num_threads_codegen.cpp | 26 #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()
|
/external/lldb/tools/debugserver/source/MacOSX/ |
D | MachThreadList.cpp | 104 const size_t num_threads = m_threads.size(); in GetThreadByID() local 105 for (size_t idx = 0; idx < num_threads; ++idx) in GetThreadByID() 121 const size_t num_threads = m_threads.size(); in GetThreadByMachPortNumber() local 122 for (size_t idx = 0; idx < num_threads; ++idx) in GetThreadByMachPortNumber() 138 const size_t num_threads = m_threads.size(); in GetThreadIDByMachPortNumber() local 139 for (size_t idx = 0; idx < num_threads; ++idx) in GetThreadIDByMachPortNumber() 154 const size_t num_threads = m_threads.size(); in GetMachPortNumberByThreadID() local 155 for (size_t idx = 0; idx < num_threads; ++idx) in GetMachPortNumberByThreadID() 344 const uint32_t num_threads = m_threads.size(); in CurrentThread() local 345 for (uint32_t idx = 0; idx < num_threads; ++idx) in CurrentThread() [all …]
|
/external/compiler-rt/test/lsan/TestCases/ |
D | high_allocator_contention.cc | 10 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/libxml2/ |
D | testThreads.c | 100 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 …]
|
D | testThreadsWin32.c | 89 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/ |
D | crash_generator.cc | 172 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/lldb/test/functionalities/thread/thread_exit/ |
D | TestThreadExit.py | 73 num_threads = process.GetNumThreads() 75 …self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match at b… 89 num_threads = process.GetNumThreads() 91 …self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match at b… 105 num_threads = process.GetNumThreads() 107 …self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match at b… 119 num_threads = process.GetNumThreads() 121 …self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match at b…
|
/external/strace/test/ |
D | many_looping_threads.c | 34 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/ |
D | program_evaluator.h | 117 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()
|
D | scratch_evaluate_preparer.cc | 42 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()
|
D | coordinate_descent_minimizer.cc | 116 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()
|
D | covariance_impl.cc | 82 evaluate_options_.num_threads = options.num_threads; in CovarianceImpl() 522 const int num_threads = options_.num_threads; in ComputeCovarianceValuesUsingSuiteSparseQR() local 523 scoped_array<double> workspace(new double[num_threads * num_cols]); in ComputeCovarianceValuesUsingSuiteSparseQR() 525 #pragma omp parallel for num_threads(num_threads) schedule(dynamic) in ComputeCovarianceValuesUsingSuiteSparseQR() 711 const int num_threads = options_.num_threads; in ComputeCovarianceValuesUsingEigenSparseQR() local 712 scoped_array<double> workspace(new double[num_threads * num_cols]); in ComputeCovarianceValuesUsingEigenSparseQR() 714 #pragma omp parallel for num_threads(num_threads) schedule(dynamic) in ComputeCovarianceValuesUsingEigenSparseQR()
|
D | evaluator.h | 62 : num_threads(1), in Options() 67 int num_threads; member 96 int num_threads,
|
/external/valgrind/drd/tests/ |
D | omp_printf.c | 27 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()
|
D | omp_prime.c | 42 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/lldb/test/functionalities/thread/state/ |
D | TestThreadStates.py | 117 num_threads = process.GetNumThreads() 119 … self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.') 158 num_threads = process.GetNumThreads() 160 … self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.') 207 num_threads = process.GetNumThreads() 209 … self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.') 251 num_threads = process.GetNumThreads() 253 … self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.') 306 num_threads = process.GetNumThreads() 308 … self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
|
/external/lldb/source/Target/ |
D | ThreadList.cpp | 120 const uint32_t num_threads = m_threads.size(); in FindThreadByID() local 121 for (idx = 0; idx < num_threads; ++idx) in FindThreadByID() 142 const uint32_t num_threads = m_threads.size(); in FindThreadByProtocolID() local 143 for (idx = 0; idx < num_threads; ++idx) in FindThreadByProtocolID() 165 const uint32_t num_threads = m_threads.size(); in RemoveThreadByID() local 166 for (idx = 0; idx < num_threads; ++idx) in RemoveThreadByID() 188 const uint32_t num_threads = m_threads.size(); in RemoveThreadByProtocolID() local 189 for (idx = 0; idx < num_threads; ++idx) in RemoveThreadByProtocolID() 210 const uint32_t num_threads = m_threads.size(); in GetThreadSPForThreadPtr() local 211 for (idx = 0; idx < num_threads; ++idx) in GetThreadSPForThreadPtr() [all …]
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | linux_dumper_unittest_helper.cc | 80 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/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_screen.c | 487 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()
|
D | lp_rast.c | 749 if (rast->num_threads == 0) { in lp_rast_queue_scene() 767 for (i = 0; i < rast->num_threads; i++) { in lp_rast_queue_scene() 779 if (rast->num_threads == 0) { in lp_rast_finish() 786 for (i = 0; i < rast->num_threads; i++) { in lp_rast_finish() 865 for (i = 0; i < rast->num_threads; i++) { in create_rast_threads() 881 lp_rast_create( unsigned num_threads ) in lp_rast_create() argument 902 rast->num_threads = num_threads; in lp_rast_create() 909 pipe_barrier_init( &rast->barrier, rast->num_threads ); in lp_rast_create() 935 for (i = 0; i < rast->num_threads; i++) { in lp_rast_destroy() 940 for (i = 0; i < rast->num_threads; i++) { in lp_rast_destroy() [all …]
|
/external/fio/t/ |
D | dedupe.c | 68 static unsigned int num_threads; variable 349 for (i = 0; i < num_threads; i++) { in show_progress() 388 threads = malloc(num_threads * sizeof(struct worker_thread)); in run_dedupe_threads() 389 for (i = 0; i < num_threads; i++) { in run_dedupe_threads() 405 for (i = 0; i < num_threads; i++) { in run_dedupe_threads() 412 printf("Threads(%u): %lu items processed\n", num_threads, nitems); in run_dedupe_threads() 458 …heck <%s>, size <%llu>, using %u threads\n", filename, (unsigned long long) dev_size, num_threads); in dedupe_check() 548 num_threads = atoi(optarg); in main() 574 if (!num_threads) in main() 575 num_threads = cpus_online(); in main()
|