/external/clang/test/OpenMP/ |
D | parallel_num_threads_messages.cpp | 12 #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 …]
|
D | target_parallel_num_threads_messages.cpp | 12 #define redef_num_threads(a, b) num_threads(a) 16 #pragma omp target parallel num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain() 18 …#pragma omp target parallel num_threads ( // expected-error {{expected expression}} expected-error… in tmain() 20 #pragma omp target parallel num_threads () // expected-error {{expected expression}} in tmain() 22 …#pragma omp target parallel num_threads (argc // expected-error {{expected ')'}} expected-note {{t… in tmain() 24 …#pragma omp target parallel num_threads (argc)) // expected-warning {{extra tokens at the end of '… in tmain() 26 …#pragma omp target parallel num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{exp… in tmain() 28 …#pragma omp target parallel num_threads (foobool(argc)), num_threads (true), num_threads (-5) // e… in tmain() 30 #pragma omp target parallel num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain() 32 …#pragma omp target parallel num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-no… 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 | target_parallel_for_num_threads_messages.cpp | 15 #pragma omp target parallel for num_threads // expected-error {{expected '(' after 'num_threads'}} in tmain() 17 …#pragma omp target parallel for num_threads ( // expected-error {{expected expression}} expected-e… in tmain() 19 #pragma omp target parallel for num_threads () // expected-error {{expected expression}} in tmain() 21 …#pragma omp target parallel for num_threads (argc // expected-error {{expected ')'}} expected-note… in tmain() 23 …#pragma omp target parallel for num_threads (argc)) // expected-warning {{extra tokens at the end … in tmain() 25 …#pragma omp target parallel for num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {… in tmain() 27 …#pragma omp target parallel for num_threads (foobool(argc)), num_threads (true), num_threads (-5) … in tmain() 29 …#pragma omp target parallel for num_threads (S) // expected-error {{'S' does not refer to a value}} in tmain() 31 …#pragma omp target parallel for num_threads (argv[1]=2) // expected-error {{expected ')'}} expecte… in tmain() 33 #pragma omp target 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 | target_parallel_for_simd_num_threads_messages.cpp | 15 …#pragma omp target parallel for simd num_threads // expected-error {{expected '(' after 'num_threa… in tmain() 17 …#pragma omp target parallel for simd num_threads ( // expected-error {{expected expression}} expec… in tmain() 19 #pragma omp target parallel for simd num_threads () // expected-error {{expected expression}} in tmain() 21 …#pragma omp target parallel for simd num_threads (argc // expected-error {{expected ')'}} expected… in tmain() 23 …#pragma omp target parallel for simd num_threads (argc)) // expected-warning {{extra tokens at the… in tmain() 25 …#pragma omp target parallel for simd num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-erro… in tmain() 27 …#pragma omp target parallel for simd num_threads (foobool(argc)), num_threads (true), num_threads … in tmain() 29 …#pragma omp target parallel for simd num_threads (S) // expected-error {{'S' does not refer to a v… in tmain() 31 …#pragma omp target parallel for simd num_threads (argv[1]=2) // expected-error {{expected ')'}} ex… in tmain() 33 #pragma omp target parallel for simd num_threads (argc) in tmain() [all …]
|
D | distribute_parallel_for_num_threads_messages.cpp | 17 #pragma omp distribute parallel for num_threads // expected-error {{expected '(' after 'num_threads… in tmain() 21 #pragma omp distribute parallel for num_threads ( // expected-error {{expected expression}} expecte… in tmain() 25 #pragma omp distribute parallel for num_threads () // expected-error {{expected expression}} in tmain() 29 #pragma omp distribute parallel for num_threads (argc // expected-error {{expected ')'}} expected-n… in tmain() 33 #pragma omp distribute parallel for num_threads (argc)) // expected-warning {{extra tokens at the e… in tmain() 37 #pragma omp distribute parallel for num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error … in tmain() 41 #pragma omp distribute parallel for num_threads (foobool(argc)), num_threads (true), num_threads (-… in tmain() 45 #pragma omp distribute parallel for num_threads (S) // expected-error {{'S' does not refer to a val… in tmain() 49 #pragma omp distribute parallel for num_threads (argv[1]=2) // expected-error {{expected ')'}} expe… in tmain() 53 #pragma omp distribute parallel for num_threads (argc) in tmain() [all …]
|
D | distribute_parallel_for_simd_num_threads_messages.cpp | 17 #pragma omp distribute parallel for simd num_threads // expected-error {{expected '(' after 'num_th… in tmain() 21 #pragma omp distribute parallel for simd num_threads ( // expected-error {{expected expression}} ex… in tmain() 25 #pragma omp distribute parallel for simd num_threads () // expected-error {{expected expression}} in tmain() 29 #pragma omp distribute parallel for simd num_threads (argc // expected-error {{expected ')'}} expec… in tmain() 33 #pragma omp distribute parallel for simd num_threads (argc)) // expected-warning {{extra tokens at … in tmain() 37 #pragma omp distribute parallel for simd num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-e… in tmain() 41 #pragma omp distribute parallel for simd num_threads (foobool(argc)), num_threads (true), num_threa… in tmain() 45 #pragma omp distribute parallel for simd num_threads (S) // expected-error {{'S' does not refer to … in tmain() 49 #pragma omp distribute parallel for simd num_threads (argv[1]=2) // expected-error {{expected ')'}}… in tmain() 53 #pragma omp distribute parallel for simd num_threads (argc) in tmain() [all …]
|
/external/tensorflow/tensorflow/core/lib/core/ |
D | threadpool_test.cc | 32 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST() local 33 fprintf(stderr, "Testing with %d threads\n", num_threads); in TEST() 34 ThreadPool pool(Env::Default(), "test", num_threads); in TEST() 40 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST() local 41 fprintf(stderr, "Testing with %d threads\n", num_threads); in TEST() 48 ThreadPool pool(Env::Default(), "test", num_threads); in TEST() 129 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST() local 130 fprintf(stderr, "Testing with %d threads\n", num_threads); in TEST() 133 ThreadPool pool(Env::Default(), "test", num_threads); in TEST() 155 for (int num_threads = 1; num_threads < kNumThreads; num_threads++) { in TEST() local [all …]
|
/external/compiler-rt/test/lsan/TestCases/ |
D | high_allocator_contention.cc | 11 int num_threads; variable 24 for (int i = 0; i < total_num_alloc / num_threads; i++) { in thread_fun() 34 num_threads = atoi(argv[1]); in main() 35 assert(num_threads > 0); in main() 36 assert(num_threads <= kMaxNumThreads); in main() 39 printf("%d threads, %d allocations in each\n", num_threads, in main() 40 total_num_alloc / num_threads); in main() 41 for (int i = 0; i < num_threads; i++) in main() 47 for (int i = 0; i < num_threads; i++) pthread_join(tid[i], 0); in main()
|
/external/tensorflow/tensorflow/core/framework/ |
D | run_handler_util_test.cc | 25 void VerifyFunction(int num_active_requests, int num_threads, in VerifyFunction() argument 29 << " num_threads: " << num_threads in VerifyFunction() 35 ComputeInterOpSchedulingRanges(num_active_requests, num_threads, in VerifyFunction() 43 ASSERT_LE(end[i], num_threads) << range_str; in VerifyFunction() 57 float thread_demand = (entry_weight * num_threads) / total_weight; in VerifyFunction() 66 ASSERT_EQ(end[num_active_requests - 1], num_threads); in VerifyFunction() 83 for (int num_threads = min_threads_per_request; in TEST() local 84 num_threads <= kMaxThreads; ++num_threads) { in TEST() 85 VerifyFunction(num_active_requests, num_threads, in TEST()
|
/external/autotest/client/tests/monotonic_time/src/ |
D | threads.c | 27 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/ |
D | vp9_skip_loopfilter_test.cc | 36 void Init(int num_threads) { in Init() argument 45 if (num_threads > 0) cfg.threads = num_threads; in Init() 122 const int num_threads = 0; in TEST() local 124 skip_loop_filter.Init(num_threads); in TEST() 132 const int num_threads = 1; in TEST() local 134 skip_loop_filter.Init(num_threads); in TEST() 142 const int num_threads = 8; in TEST() local 144 skip_loop_filter.Init(num_threads); in TEST() 152 const int num_threads = 0; in TEST() local 154 skip_loop_filter.Init(num_threads); in TEST() [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | override_threadpool_test.py | 42 def _testNumThreadsHelper(self, num_threads, override_threadpool_fn): argument 67 if num_threads: 71 self.assertLessEqual(len(thread_ids), num_threads) 84 def testNumThreadsDeprecated(self, num_threads, max_intra_op_parallelism): argument 90 num_threads, 92 display_name="private_thread_pool_%d" % num_threads)) 94 self._testNumThreadsHelper(num_threads, override_threadpool_fn) 110 def testNumThreads(self, num_threads, max_intra_op_parallelism): argument 116 if num_threads is not None: 117 t_options.private_threadpool_size = num_threads [all …]
|
/external/libxml2/ |
D | testThreads.c | 104 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); in main() local 112 memset(results, 0, sizeof(*results)*num_threads); in main() 113 memset(tid, 0xff, sizeof(*tid)*num_threads); in main() 115 for (i = 0; i < num_threads; i++) { in main() 123 for (i = 0; i < num_threads; i++) { in main() 132 for (i = 0; i < num_threads; i++) in main() 145 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); in main() local 155 for (i = 0; i < num_threads; i++) { in main() 160 for (i = 0; i < num_threads; i++) { in main() 168 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/gemmlowp/test/ |
D | test_blocking_counter.cc | 66 void test_blocking_counter(BlockingCounter* blocking_counter, int num_threads, in test_blocking_counter() argument 71 for (int i = 0; i < num_threads; i++) { in test_blocking_counter() 77 for (int i = 0; i < num_threads; i++) { in test_blocking_counter() 92 for (int num_threads = 1; num_threads <= 16; num_threads++) { in test_blocking_counter() local 96 test_blocking_counter(blocking_counter, num_threads, in test_blocking_counter() 98 num_threads * num_decrements_per_thread); in test_blocking_counter()
|
/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/tensorflow/tensorflow/contrib/learn/python/learn/learn_io/ |
D | graph_io.py | 55 num_threads=1, argument 108 num_threads=num_threads, 123 num_threads=1, argument 178 num_threads=num_threads, 193 num_threads=1, argument 251 num_threads=num_threads, 291 def _get_examples(file_name_queue, reader, num_threads, read_batch_size, argument 314 for _ in range(num_threads): 344 num_threads=1, argument 399 if (not num_threads) or (num_threads <= 0): [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorContractionThreadPool.h | 43 const Index num_threads; member 205 int num_threads = TensorCostModel<ThreadPoolDevice>::numThreads( 210 if (n == 1) num_threads = 1; 212 if (num_threads == 1) { 226 shard_by_col = shardByCol(m, n, num_threads); 230 blocking(k, m, n, num_threads); 237 blocking(k, m, n, num_threads); 257 gm = coarsenM(m, n, bm, bn, bk, gn, num_threads, shard_by_col); 258 gn = coarsenN(m, n, bm, bn, bk, gm, num_threads, shard_by_col); 260 gn = coarsenN(m, n, bm, bn, bk, gm, num_threads, shard_by_col); [all …]
|
/external/ltp/testcases/kernel/io/stress_cd/ |
D | stress_cd.c | 50 static int num_threads = DEFAULT_NUM_THREADS; variable 74 printf("\tThread [main] Creating %d threads\n", num_threads); in main() 76 pthread_t array[num_threads]; in main() 77 int arg[num_threads]; in main() 79 for (i = 0; i < num_threads; i++) { in main() 99 for (i = 0; i < num_threads; i++) { in main() 211 num_threads = atoi(optarg); in parse_args() 222 if (num_threads < 0) { in parse_args()
|
/external/ltp/testcases/misc/math/float/ |
D | main.c | 59 int num_threads = DEFAULT_NUM_THREADS; variable 151 num_threads = atoi(optarg); in main() 182 if (num_threads <= 0) { in main() 185 num_threads = 1; in main() 188 if (nb_func * num_threads > PTHREAD_THREADS_MAX - 2) in main() 189 while (nb_func * num_threads > PTHREAD_THREADS_MAX - 2) in main() 190 num_threads--; in main() 194 argv[0], nb_func, num_threads); in main() 207 threads = malloc(nb_func * num_threads * sizeof(pthread_t)); in main() 211 tabcom = malloc((sizeof(TH_DATA *) * nb_func * num_threads)); in main() [all …]
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | ffsb_tg.c | 26 void init_ffsb_tg(ffsb_tg_t * tg, unsigned num_threads, unsigned tg_num) in init_ffsb_tg() argument 31 tg->threads = ffsb_malloc(sizeof(ffsb_thread_t) * num_threads); in init_ffsb_tg() 33 tg->num_threads = num_threads; in init_ffsb_tg() 38 for (i = 0; i < num_threads; i++) in init_ffsb_tg() 45 for (i = 0; i < tg->num_threads; i++) in destroy_ffsb_tg() 74 for (i = 0; i < tg->num_threads; i++) { in tg_run() 91 for (i = 0; i < tg->num_threads; i++) in tg_run() 150 return tg->num_threads; in tg_get_numthreads() 159 for (i = 0; i < tg->num_threads; i++) in update_bufsize() 271 printf("\t num_threads = %d\n", tg->num_threads); in tg_print_config_helper() [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/ |
D | NonBlockingThreadPool.h | 22 NonBlockingThreadPoolTempl(int num_threads, Environment env = Environment()) 24 threads_(num_threads), in env_() 25 queues_(num_threads), in env_() 26 coprimes_(num_threads), in env_() 27 waiters_(num_threads), in env_() 32 waiters_.resize(num_threads); in env_() 41 for (int i = 1; i <= num_threads; i++) { in env_() 43 unsigned b = num_threads; in env_() 54 for (int i = 0; i < num_threads; i++) { in env_() 57 for (int i = 0; i < num_threads; i++) { in env_()
|